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

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

Issue 13051003: cpplint.py pass on cc/(base|debug|quads|resources)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix prioritized_resource_unittest Created 7 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/debug/ring_buffer.h ('k') | cc/layers/picture_layer_impl.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/base/thread.h" 9 #include "cc/base/thread.h"
10 #include "cc/layers/layer_impl.h" 10 #include "cc/layers/layer_impl.h"
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetOpacity(0.5f)); 544 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetOpacity(0.5f));
545 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetContentsOpaque(true)); 545 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetContentsOpaque(true));
546 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetPosition(gfx::PointF(4.f, 9.f))); 546 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetPosition(gfx::PointF(4.f, 9.f)));
547 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetSublayerTransform( 547 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetSublayerTransform(
548 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0))); 548 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0)));
549 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollable(true)); 549 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollable(true));
550 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollOffset( 550 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetScrollOffset(
551 gfx::Vector2d(10, 10))); 551 gfx::Vector2d(10, 10)));
552 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetShouldScrollOnMainThread(true)); 552 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetShouldScrollOnMainThread(true));
553 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetNonFastScrollableRegion( 553 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetNonFastScrollableRegion(
554 gfx::Rect(1, 1, 2, 2))); 554 Region(gfx::Rect(1, 1, 2, 2))));
555 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHaveWheelEventHandlers(true)); 555 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetHaveWheelEventHandlers(true));
556 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTransform( 556 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetTransform(
557 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0))); 557 gfx::Transform(0.0, 0.0, 0.0, 0.0, 0.0, 0.0)));
558 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDoubleSided(false)); 558 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDoubleSided(false));
559 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDebugName("Test Layer")); 559 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDebugName("Test Layer"));
560 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDrawCheckerboardForMissingTiles( 560 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetDrawCheckerboardForMissingTiles(
561 !test_layer->DrawCheckerboardForMissingTiles())); 561 !test_layer->DrawCheckerboardForMissingTiles()));
562 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetForceRenderSurface(true)); 562 EXPECT_SET_NEEDS_COMMIT(1, test_layer->SetForceRenderSurface(true));
563 563
564 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetMaskLayer( 564 EXPECT_SET_NEEDS_FULL_TREE_SYNC(1, test_layer->SetMaskLayer(
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 layer->SetLayerTreeHost(layer_tree_host.get()); 1002 layer->SetLayerTreeHost(layer_tree_host.get());
1003 AssertLayerTreeHostMatchesForSubtree(layer.get(), layer_tree_host.get()); 1003 AssertLayerTreeHostMatchesForSubtree(layer.get(), layer_tree_host.get());
1004 1004
1005 // Case 3: with a LayerTreeHost where accelerated animation is disabled, the 1005 // Case 3: with a LayerTreeHost where accelerated animation is disabled, the
1006 // animation should be rejected. 1006 // animation should be rejected.
1007 EXPECT_FALSE(AddTestAnimation(layer.get())); 1007 EXPECT_FALSE(AddTestAnimation(layer.get()));
1008 } 1008 }
1009 1009
1010 } // namespace 1010 } // namespace
1011 } // namespace cc 1011 } // namespace cc
OLDNEW
« no previous file with comments | « cc/debug/ring_buffer.h ('k') | cc/layers/picture_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698