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

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

Issue 22891006: cc: Layer::SetTouchEventHandlerRegion should SetNeedsCommit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: toucheventhandlerregion: rebase Created 7 years, 4 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.cc ('k') | no next file » | 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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollable(true)); 552 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollable(true));
553 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollOffset( 553 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollOffset(
554 gfx::Vector2d(10, 10))); 554 gfx::Vector2d(10, 10)));
555 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetShouldScrollOnMainThread(true)); 555 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetShouldScrollOnMainThread(true));
556 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetNonFastScrollableRegion( 556 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetNonFastScrollableRegion(
557 Region(gfx::Rect(1, 1, 2, 2)))); 557 Region(gfx::Rect(1, 1, 2, 2))));
558 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHaveWheelEventHandlers(true)); 558 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHaveWheelEventHandlers(true));
559 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTransform( 559 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTransform(
560 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0))); 560 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0)));
561 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDoubleSided(false)); 561 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDoubleSided(false));
562 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTouchEventHandlerRegion(
563 gfx::Rect(10, 10)));
562 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDrawCheckerboardForMissingTiles( 564 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDrawCheckerboardForMissingTiles(
563 !test_layer->DrawCheckerboardForMissingTiles())); 565 !test_layer->DrawCheckerboardForMissingTiles()));
564 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetForceRenderSurface(true)); 566 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetForceRenderSurface(true));
565 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHideLayerAndSubtree(true)); 567 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHideLayerAndSubtree(true));
566 568
567 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetMaskLayer( 569 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetMaskLayer(
568 dummy_layer1.get())); 570 dummy_layer1.get()));
569 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetReplicaLayer( 571 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetReplicaLayer(
570 dummy_layer2.get())); 572 dummy_layer2.get()));
571 573
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 << "Flags: " << contents_opaque << ", " << layer_opaque << ", " 1029 << "Flags: " << contents_opaque << ", " << layer_opaque << ", "
1028 << host_opaque << "\n"; 1030 << host_opaque << "\n";
1029 } 1031 }
1030 } 1032 }
1031 } 1033 }
1032 } 1034 }
1033 } 1035 }
1034 1036
1035 } // namespace 1037 } // namespace
1036 } // namespace cc 1038 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698