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

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

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT, fix builds on non-linux platforms! 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
« no previous file with comments | « cc/layers/layer_perftest.cc ('k') | cc/layers/nine_patch_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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 MOCK_METHOD0(SetNeedsCommit, void()); 46 MOCK_METHOD0(SetNeedsCommit, void());
47 MOCK_METHOD0(SetNeedsUpdateLayers, void()); 47 MOCK_METHOD0(SetNeedsUpdateLayers, void());
48 MOCK_METHOD0(SetNeedsFullTreeSync, void()); 48 MOCK_METHOD0(SetNeedsFullTreeSync, void());
49 }; 49 };
50 50
51 class MockLayerPainter : public LayerPainter { 51 class MockLayerPainter : public LayerPainter {
52 public: 52 public:
53 virtual void Paint(SkCanvas* canvas, 53 virtual void Paint(SkCanvas* canvas,
54 gfx::Rect content_rect, 54 const gfx::Rect& content_rect,
55 gfx::RectF* opaque) OVERRIDE {} 55 gfx::RectF* opaque) OVERRIDE {}
56 }; 56 };
57 57
58 58
59 class LayerTest : public testing::Test { 59 class LayerTest : public testing::Test {
60 public: 60 public:
61 LayerTest() 61 LayerTest()
62 : host_impl_(&proxy_), 62 : host_impl_(&proxy_),
63 fake_client_(FakeLayerTreeHostClient::DIRECT_3D) {} 63 fake_client_(FakeLayerTreeHostClient::DIRECT_3D) {}
64 64
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 << "Flags: " << contents_opaque << ", " << layer_opaque << ", " 1074 << "Flags: " << contents_opaque << ", " << layer_opaque << ", "
1075 << host_opaque << "\n"; 1075 << host_opaque << "\n";
1076 } 1076 }
1077 } 1077 }
1078 } 1078 }
1079 } 1079 }
1080 } 1080 }
1081 1081
1082 } // namespace 1082 } // namespace
1083 } // namespace cc 1083 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_perftest.cc ('k') | cc/layers/nine_patch_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698