summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-07 18:02:20 +0000
committerdarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-07 18:02:20 +0000
commitf197851787237e4fa2d343f536f8fc7231316168 (patch)
treed39e5d07dcfb98ef63e720ed81af0ac4793c04f0
parentd1c4b0b7d84176bc9836a43016dde82f13dcb9b1 (diff)
downloadchromium_src-f197851787237e4fa2d343f536f8fc7231316168.zip
chromium_src-f197851787237e4fa2d343f536f8fc7231316168.tar.gz
chromium_src-f197851787237e4fa2d343f536f8fc7231316168.tar.bz2
Disable the code that tries to use the transport DIB as the backing store of
the renderer. I think this might be impacting preformance in a negative way. R=iyengar git-svn-id: svn://svn.chromium.org/chrome/trunk/src@522 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/render_widget_host.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/render_widget_host.cc b/chrome/browser/render_widget_host.cc
index 542f903..bee18ca 100644
--- a/chrome/browser/render_widget_host.cc
+++ b/chrome/browser/render_widget_host.cc
@@ -91,10 +91,13 @@ bool RenderWidgetHost::BackingStore::Refresh(HANDLE process,
if (!valid_bitmap)
return false;
+ // Disable this optimization to see how it impacts perf.
+#if 0
if (bitmap_rect.size() == size()) {
CreateDIBSectionBackedByRendererBitmap(bitmap_rect, valid_bitmap);
return true;
}
+#endif
if (!backing_store_dib_) {
backing_store_dib_ = CreateDIB(hdc_, size_.width(), size_.height(), true,