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

Unified Diff: cc/trees/layer_tree_host_pixeltest_filters.cc

Issue 2048753002: cc: Remove some unused layers from layer_tree_host_pixeltest_filters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_pixeltest_filters.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_filters.cc b/cc/trees/layer_tree_host_pixeltest_filters.cc
index 0a419b976db801512170fc93d997247f31b852d7..9455da3acf340e7329cbe6bfc46b271dfbdf964b 100644
--- a/cc/trees/layer_tree_host_pixeltest_filters.cc
+++ b/cc/trees/layer_tree_host_pixeltest_filters.cc
@@ -178,12 +178,8 @@ class LayerTreeHostFiltersScaledPixelTest
PixelTestType test_type) {
int half_content = content_size / 2;
- scoped_refptr<SolidColorLayer> root = CreateSolidColorLayer(
- gfx::Rect(0, 0, content_size, content_size), SK_ColorWHITE);
-
scoped_refptr<SolidColorLayer> background = CreateSolidColorLayer(
gfx::Rect(0, 0, content_size, content_size), SK_ColorGREEN);
- root->AddChild(background);
// Add a blue layer that completely covers the green layer.
scoped_refptr<SolidColorLayer> foreground = CreateSolidColorLayer(
@@ -285,12 +281,8 @@ TEST_F(LayerTreeHostCroppedFilterPixelTest, Software) {
class ImageFilterClippedPixelTest : public LayerTreeHostFiltersPixelTest {
protected:
void RunPixelTestType(PixelTestType test_type) {
- scoped_refptr<SolidColorLayer> root =
- CreateSolidColorLayer(gfx::Rect(200, 200), SK_ColorBLACK);
-
scoped_refptr<SolidColorLayer> background =
CreateSolidColorLayer(gfx::Rect(200, 200), SK_ColorYELLOW);
- root->AddChild(background);
scoped_refptr<SolidColorLayer> foreground =
CreateSolidColorLayer(gfx::Rect(200, 200), SK_ColorRED);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698