浏览代码

WebContent: Put some debug spam behind an #ifdef

This makes resizing the window a little less obnoxious. :^)
Andreas Kling 5 年之前
父节点
当前提交
aac362b883
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Services/WebContent/ClientConnection.cpp

+ 2 - 0
Services/WebContent/ClientConnection.cpp

@@ -112,7 +112,9 @@ void ClientConnection::handle(const Messages::WebContentServer::Paint& message)
 
     auto shared_buffer = SharedBuffer::create_from_shbuf_id(message.shbuf_id());
     if (!shared_buffer) {
+#ifdef DEBUG_SPAM
         dbg() << "WebContentServer::Paint: SharedBuffer already gone! Ignoring :^)";
+#endif
         return;
     }
     auto shared_bitmap = Gfx::Bitmap::create_with_shared_buffer(Gfx::BitmapFormat::RGB32, shared_buffer.release_nonnull(), message.content_rect().size());