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

Side by Side Diff: cc/layers/layer_unittest.cc

Issue 146713002: Revert of Pinch/Zoom Infrastructure & Plumbing CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « cc/layers/layer_position_constraint_unittest.cc ('k') | cc/layers/painted_scrollbar_layer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/layer.h" 5 #include "cc/layers/layer.h"
6 6
7 #include "cc/animation/keyframed_animation_curve.h" 7 #include "cc/animation/keyframed_animation_curve.h"
8 #include "cc/base/math_util.h" 8 #include "cc/base/math_util.h"
9 #include "cc/layers/layer_impl.h" 9 #include "cc/layers/layer_impl.h"
10 #include "cc/resources/layer_painter.h" 10 #include "cc/resources/layer_painter.h"
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetAnchorPointZ(0.7f)); 544 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetAnchorPointZ(0.7f));
545 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetBackgroundColor(SK_ColorLTGRAY)); 545 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetBackgroundColor(SK_ColorLTGRAY));
546 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetMasksToBounds(true)); 546 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetMasksToBounds(true));
547 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetOpacity(0.5f)); 547 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetOpacity(0.5f));
548 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetBlendMode(SkXfermode::kHue_Mode)); 548 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetBlendMode(SkXfermode::kHue_Mode));
549 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetIsRootForIsolatedGroup(true)); 549 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetIsRootForIsolatedGroup(true));
550 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetContentsOpaque(true)); 550 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetContentsOpaque(true));
551 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetPosition(gfx::PointF(4.f, 9.f))); 551 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetPosition(gfx::PointF(4.f, 9.f)));
552 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetSublayerTransform( 552 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetSublayerTransform(
553 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0))); 553 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0)));
554 // We can use any layer pointer here since we aren't syncing for real. 554 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollable(true));
555 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollClipLayer(test_layer.get()));
556 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetUserScrollable(true, false)); 555 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetUserScrollable(true, false));
557 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollOffset( 556 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollOffset(
558 gfx::Vector2d(10, 10))); 557 gfx::Vector2d(10, 10)));
559 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetShouldScrollOnMainThread(true)); 558 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetShouldScrollOnMainThread(true));
560 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetNonFastScrollableRegion( 559 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetNonFastScrollableRegion(
561 Region(gfx::Rect(1, 1, 2, 2)))); 560 Region(gfx::Rect(1, 1, 2, 2))));
562 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHaveWheelEventHandlers(true)); 561 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHaveWheelEventHandlers(true));
563 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTransform( 562 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTransform(
564 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0))); 563 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0)));
565 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDoubleSided(false)); 564 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDoubleSided(false));
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 << "Flags: " << contents_opaque << ", " << layer_opaque << ", " 1074 << "Flags: " << contents_opaque << ", " << layer_opaque << ", "
1076 << host_opaque << "\n"; 1075 << host_opaque << "\n";
1077 } 1076 }
1078 } 1077 }
1079 } 1078 }
1080 } 1079 }
1081 } 1080 }
1082 1081
1083 } // namespace 1082 } // namespace
1084 } // namespace cc 1083 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_position_constraint_unittest.cc ('k') | cc/layers/painted_scrollbar_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698