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

Unified Diff: cc/test/layer_tree_pixel_test.cc

Issue 295193002: Get rid of graphics layer anchor points, and replace with transform origin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 years, 7 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
Index: cc/test/layer_tree_pixel_test.cc
diff --git a/cc/test/layer_tree_pixel_test.cc b/cc/test/layer_tree_pixel_test.cc
index 3237c1af4dc0477e572a8f934112db06adce7f2a..67bb291a31b2a06017682fc5da529e3291c2d82c 100644
--- a/cc/test/layer_tree_pixel_test.cc
+++ b/cc/test/layer_tree_pixel_test.cc
@@ -105,7 +105,6 @@ void LayerTreePixelTest::AfterTest() {
CommandLine* cmd = CommandLine::ForCurrentProcess();
if (cmd->HasSwitch(switches::kCCRebaselinePixeltests))
EXPECT_TRUE(WritePNGFile(*result_bitmap_, ref_file_path, true));
-
EXPECT_TRUE(MatchesPNGFile(*result_bitmap_,
ref_file_path,
*pixel_comparator_));
@@ -115,7 +114,7 @@ scoped_refptr<SolidColorLayer> LayerTreePixelTest::CreateSolidColorLayer(
const gfx::Rect& rect, SkColor color) {
scoped_refptr<SolidColorLayer> layer = SolidColorLayer::Create();
layer->SetIsDrawable(true);
- layer->SetAnchorPoint(gfx::PointF());
+ layer->SetTransformOrigin(gfx::Point3F());
layer->SetBounds(rect.size());
layer->SetPosition(rect.origin());
layer->SetBackgroundColor(color);
@@ -174,7 +173,7 @@ scoped_refptr<TextureLayer> LayerTreePixelTest::CreateTextureLayer(
const gfx::Rect& rect, const SkBitmap& bitmap) {
scoped_refptr<TextureLayer> layer = TextureLayer::CreateForMailbox(NULL);
layer->SetIsDrawable(true);
- layer->SetAnchorPoint(gfx::PointF());
+ layer->SetTransformOrigin(gfx::Point3F());
layer->SetBounds(rect.size());
layer->SetPosition(rect.origin());

Powered by Google App Engine
This is Rietveld 408576698