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

Side by Side Diff: cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc

Issue 17449014: cc: Test cleanup for layer tree pixel tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copy-test-enum: remove NONE Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/layers/append_quads_data.h" 5 #include "cc/layers/append_quads_data.h"
6 #include "cc/layers/content_layer_client.h" 6 #include "cc/layers/content_layer_client.h"
7 #include "cc/layers/picture_layer.h" 7 #include "cc/layers/picture_layer.h"
8 #include "cc/layers/picture_layer_impl.h" 8 #include "cc/layers/picture_layer_impl.h"
9 #include "cc/quads/draw_quad.h" 9 #include "cc/quads/draw_quad.h"
10 #include "cc/test/layer_tree_pixel_test.h" 10 #include "cc/test/layer_tree_pixel_test.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // rasterization if a single solid color is detected in picture analysis. 92 // rasterization if a single solid color is detected in picture analysis.
93 gfx::Rect layer_rect(200, 200); 93 gfx::Rect layer_rect(200, 200);
94 BlueYellowLayerClient client(layer_rect); 94 BlueYellowLayerClient client(layer_rect);
95 scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client); 95 scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client);
96 96
97 layer->SetIsDrawable(true); 97 layer->SetIsDrawable(true);
98 layer->SetAnchorPoint(gfx::PointF()); 98 layer->SetAnchorPoint(gfx::PointF());
99 layer->SetBounds(layer_rect.size()); 99 layer->SetBounds(layer_rect.size());
100 layer->SetPosition(layer_rect.origin()); 100 layer->SetPosition(layer_rect.origin());
101 101
102 RunPixelTest(layer, base::FilePath(FILE_PATH_LITERAL("blue_yellow.png"))); 102 RunPixelTest(GL_WITH_BITMAP,
103 layer,
104 base::FilePath(FILE_PATH_LITERAL("blue_yellow.png")));
103 } 105 }
104 106
105 } // namespace 107 } // namespace
106 } // namespace cc 108 } // namespace cc
107 109
108 #endif // OS_ANDROID 110 #endif // OS_ANDROID
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_pixeltest_masks.cc ('k') | cc/trees/layer_tree_host_pixeltest_readback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698