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

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

Issue 189433003: Remove --background-color-instead-of-checkerboard flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: backgroundcolorinsteadofcheckerboard: Created 6 years, 9 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_impl.cc ('k') | cc/layers/picture_layer_impl.cc » ('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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 gfx::Vector2d(10, 10))); 557 gfx::Vector2d(10, 10)));
558 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetShouldScrollOnMainThread(true)); 558 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetShouldScrollOnMainThread(true));
559 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetNonFastScrollableRegion( 559 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetNonFastScrollableRegion(
560 Region(gfx::Rect(1, 1, 2, 2)))); 560 Region(gfx::Rect(1, 1, 2, 2))));
561 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHaveWheelEventHandlers(true)); 561 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHaveWheelEventHandlers(true));
562 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTransform( 562 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTransform(
563 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)));
564 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDoubleSided(false)); 564 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDoubleSided(false));
565 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTouchEventHandlerRegion( 565 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTouchEventHandlerRegion(
566 gfx::Rect(10, 10))); 566 gfx::Rect(10, 10)));
567 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDrawCheckerboardForMissingTiles( 567 EXPECT_SET_NEEDS_COMMIT(
568 !test_layer->DrawCheckerboardForMissingTiles())); 568 1,
569 test_layer->SetDrawCheckerboardForMissingTiles(
570 !test_layer->draw_checkerboard_for_missing_tiles()));
569 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetForceRenderSurface(true)); 571 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetForceRenderSurface(true));
570 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHideLayerAndSubtree(true)); 572 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHideLayerAndSubtree(true));
571 573
572 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetMaskLayer( 574 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetMaskLayer(
573 dummy_layer1.get())); 575 dummy_layer1.get()));
574 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetReplicaLayer( 576 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetReplicaLayer(
575 dummy_layer2.get())); 577 dummy_layer2.get()));
576 578
577 // The above tests should not have caused a change to the needs_display flag. 579 // The above tests should not have caused a change to the needs_display flag.
578 EXPECT_FALSE(test_layer->NeedsDisplayForTesting()); 580 EXPECT_FALSE(test_layer->NeedsDisplayForTesting());
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 << "Flags: " << contents_opaque << ", " << layer_opaque << ", " 1076 << "Flags: " << contents_opaque << ", " << layer_opaque << ", "
1075 << host_opaque << "\n"; 1077 << host_opaque << "\n";
1076 } 1078 }
1077 } 1079 }
1078 } 1080 }
1079 } 1081 }
1080 } 1082 }
1081 1083
1082 } // namespace 1084 } // namespace
1083 } // namespace cc 1085 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698