Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1091)

Unified Diff: cc/test/pixel_test.cc

Issue 2399713003: cc: Replace viewport/clip rect with a viewport size for DirectRenderer (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/surfaces/display.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/pixel_test.cc
diff --git a/cc/test/pixel_test.cc b/cc/test/pixel_test.cc
index ff11182d48edb69c938a0515678c69286e7fb47e..eb8d965279609457ba8f7376ff14c23478c3da36 100644
--- a/cc/test/pixel_test.cc
+++ b/cc/test/pixel_test.cc
@@ -74,18 +74,15 @@ bool PixelTest::RunPixelTestWithReadbackTargetAndArea(
request->set_area(*copy_rect);
target->copy_requests.push_back(std::move(request));
- float device_scale_factor = 1.f;
- gfx::Rect device_viewport_rect(device_viewport_size_);
- gfx::Rect device_clip_rect(device_viewport_size_);
-
if (software_renderer_) {
software_renderer_->SetDisablePictureQuadImageFiltering(
disable_picture_quad_image_filtering_);
}
renderer_->DecideRenderPassAllocationsForFrame(*pass_list);
+ float device_scale_factor = 1.f;
renderer_->DrawFrame(pass_list, device_scale_factor, gfx::ColorSpace(),
- device_viewport_rect, device_clip_rect);
+ device_viewport_size_);
// Wait for the readback to complete.
if (output_surface_->context_provider())
« no previous file with comments | « cc/surfaces/display.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698