diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-05 16:36:54 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-05 16:49:40 +0200 |
commit | aac362b8839e3bfac1d620ff0f4e64a8e52a8251 (patch) | |
tree | 8e65f366672c0877099e664c69645442a77e964a /Services/WebContent | |
parent | 2c4a16840483b87b73788a1de0ff826aa759d64e (diff) | |
download | serenity-aac362b8839e3bfac1d620ff0f4e64a8e52a8251.zip |
WebContent: Put some debug spam behind an #ifdef
This makes resizing the window a little less obnoxious. :^)
Diffstat (limited to 'Services/WebContent')
-rw-r--r-- | Services/WebContent/ClientConnection.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Services/WebContent/ClientConnection.cpp b/Services/WebContent/ClientConnection.cpp index f818fa5538..325b51b421 100644 --- a/Services/WebContent/ClientConnection.cpp +++ b/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()); |