summaryrefslogtreecommitdiffstats
path: root/cc/test/pixel_test.cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-10 22:33:08 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-10 22:33:08 +0000
commitf636ce801b677854048affa6d550a9ac84c611b0 (patch)
tree9183d3dc2d897b80a2df18dfe8e5eda47c3f025f /cc/test/pixel_test.cc
parent51dacee518ef680a24973a3573c09433c43e83ca (diff)
downloadchromium_src-f636ce801b677854048affa6d550a9ac84c611b0.zip
chromium_src-f636ce801b677854048affa6d550a9ac84c611b0.tar.gz
chromium_src-f636ce801b677854048affa6d550a9ac84c611b0.tar.bz2
cc: Fix damage when the HUD is enabled.
When the HUD is on, and partial swaps are enabled, the damage rects emitted by the renderer do not include the HUD, so the HUD is not updated correctly on screen. Previously we disabled partial swap in the renderer compositor to force the hud to display, but in ubercomp, partial swap is never used in the renderer, and the damage rect is given to the browser instead. So we need to update the renderer's damage rect in this case. R=enne@chromium.org, piman@chromium.org, caseq, enne BUG=350495 Review URL: https://codereview.chromium.org/191433002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256052 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/pixel_test.cc')
-rw-r--r--cc/test/pixel_test.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/cc/test/pixel_test.cc b/cc/test/pixel_test.cc
index 77a8f52..9277fe5 100644
--- a/cc/test/pixel_test.cc
+++ b/cc/test/pixel_test.cc
@@ -73,15 +73,12 @@ bool PixelTest::RunPixelTestWithReadbackTarget(
gfx::Rect device_clip_rect = external_device_clip_rect_.IsEmpty()
? device_viewport_rect
: external_device_clip_rect_;
- bool allow_partial_swap = true;
-
renderer_->DecideRenderPassAllocationsForFrame(*pass_list);
renderer_->DrawFrame(pass_list,
offscreen_contexts.get(),
device_scale_factor,
device_viewport_rect,
device_clip_rect,
- allow_partial_swap,
disable_picture_quad_image_filtering_);
// Wait for the readback to complete.