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

Unified Diff: cc/layers/delegated_renderer_layer_impl_unittest.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: Fix nit. Created 6 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 | « cc/base/math_util.cc ('k') | cc/layers/io_surface_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/delegated_renderer_layer_impl_unittest.cc
diff --git a/cc/layers/delegated_renderer_layer_impl_unittest.cc b/cc/layers/delegated_renderer_layer_impl_unittest.cc
index a2f14224aa232c162c50932d115f63a232492b67..3f30d15a3b79651463f9e31df14ad4a86b8e3002 100644
--- a/cc/layers/delegated_renderer_layer_impl_unittest.cc
+++ b/cc/layers/delegated_renderer_layer_impl_unittest.cc
@@ -511,6 +511,8 @@ class DelegatedRendererLayerImplTestTransform
transform.Scale(2.0, 2.0);
transform.Translate(8.0, 8.0);
delegated_renderer_layer->SetTransform(transform);
+ delegated_renderer_layer->SetTransformOrigin(
+ gfx::Point3F(75 * 0.5f, 75 * 0.5f, 0.0f));
ScopedPtrVector<RenderPass> delegated_render_passes;
@@ -1386,7 +1388,6 @@ TEST_F(DelegatedRendererLayerImplTest, Occlusion) {
FakeDelegatedRendererLayerImpl* delegated_renderer_layer_impl =
impl.AddChildToRoot<FakeDelegatedRendererLayerImpl>();
- delegated_renderer_layer_impl->SetAnchorPoint(gfx::PointF());
delegated_renderer_layer_impl->SetBounds(layer_size);
delegated_renderer_layer_impl->SetContentBounds(layer_size);
delegated_renderer_layer_impl->SetDrawsContent(true);
« no previous file with comments | « cc/base/math_util.cc ('k') | cc/layers/io_surface_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698