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

Unified Diff: cc/output/renderer_pixeltest.cc

Issue 2392183003: cc: Remove SurfaceSize from OutputSurface. (Closed)
Patch Set: nosurfacesize: ozonethinger 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/output/output_surface.h ('k') | cc/test/data/background_filter_on_scaled_layer_gl.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/renderer_pixeltest.cc
diff --git a/cc/output/renderer_pixeltest.cc b/cc/output/renderer_pixeltest.cc
index dcac7138787cd5d074685e26e7f59fd9d0c62cd4..c62ae058d00de3a93b6a68d2ecc1a2a8cbc5a1c1 100644
--- a/cc/output/renderer_pixeltest.cc
+++ b/cc/output/renderer_pixeltest.cc
@@ -2197,30 +2197,6 @@ TEST_F(ExternalStencilPixelTest, RenderSurfacesIgnoreStencil) {
ExactPixelComparator(true)));
}
-TEST_F(ExternalStencilPixelTest, DeviceClip) {
- ClearBackgroundToGreen();
- gfx::Rect clip_rect(gfx::Point(150, 150), gfx::Size(50, 50));
- this->ForceDeviceClip(clip_rect);
-
- // Draw a blue quad that covers the entire device viewport. It should be
- // clipped to the bottom right corner by the device clip.
- gfx::Rect rect(this->device_viewport_size_);
- RenderPassId id(1, 1);
- std::unique_ptr<RenderPass> pass = CreateTestRootRenderPass(id, rect);
- SharedQuadState* blue_shared_state =
- CreateTestSharedQuadState(gfx::Transform(), rect, pass.get());
- SolidColorDrawQuad* blue =
- pass->CreateAndAppendDrawQuad<SolidColorDrawQuad>();
- blue->SetNew(blue_shared_state, rect, rect, SK_ColorBLUE, false);
- RenderPassList pass_list;
- pass_list.push_back(std::move(pass));
-
- EXPECT_TRUE(this->RunPixelTest(
- &pass_list,
- base::FilePath(FILE_PATH_LITERAL("green_with_blue_corner.png")),
- ExactPixelComparator(true)));
-}
-
// Software renderer does not support anti-aliased edges.
TEST_F(GLRendererPixelTest, AntiAliasing) {
gfx::Rect rect(this->device_viewport_size_);
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/test/data/background_filter_on_scaled_layer_gl.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698