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

Side by Side Diff: cc/picture_layer_impl_unittest.cc

Issue 12813004: Chromium style checker cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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/layer_tree_host_unittest_delegated.cc ('k') | cc/test/fake_picture_layer_tiling_client.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/picture_layer_impl.h" 5 #include "cc/picture_layer_impl.h"
6 6
7 #include "cc/layer_tree_impl.h" 7 #include "cc/layer_tree_impl.h"
8 #include "cc/picture_layer.h" 8 #include "cc/picture_layer.h"
9 #include "cc/test/fake_content_layer_client.h" 9 #include "cc/test/fake_content_layer_client.h"
10 #include "cc/test/fake_impl_proxy.h" 10 #include "cc/test/fake_impl_proxy.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 virtual ~TestablePicturePileImpl() { 129 virtual ~TestablePicturePileImpl() {
130 } 130 }
131 131
132 FakeContentLayerClient client_; 132 FakeContentLayerClient client_;
133 }; 133 };
134 134
135 class MockCanvas : public SkCanvas { 135 class MockCanvas : public SkCanvas {
136 public: 136 public:
137 explicit MockCanvas(SkDevice* device) : SkCanvas(device) {} 137 explicit MockCanvas(SkDevice* device) : SkCanvas(device) {}
138 138
139 virtual void drawRect(const SkRect& rect, const SkPaint& paint) { 139 virtual void drawRect(const SkRect& rect, const SkPaint& paint) OVERRIDE {
140 // Capture calls before SkCanvas quickReject kicks in 140 // Capture calls before SkCanvas quickReject kicks in
141 rects_.push_back(rect); 141 rects_.push_back(rect);
142 } 142 }
143 143
144 std::vector<SkRect> rects_; 144 std::vector<SkRect> rects_;
145 }; 145 };
146 146
147 class PictureLayerImplTest : public testing::Test { 147 class PictureLayerImplTest : public testing::Test {
148 public: 148 public:
149 PictureLayerImplTest() 149 PictureLayerImplTest()
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 used_tilings.push_back(active_layer_->tilings().tiling_at(1)); 699 used_tilings.push_back(active_layer_->tilings().tiling_at(1));
700 active_layer_->CleanUpTilingsOnActiveLayer(used_tilings); 700 active_layer_->CleanUpTilingsOnActiveLayer(used_tilings);
701 ASSERT_EQ(3u, active_layer_->tilings().num_tilings()); 701 ASSERT_EQ(3u, active_layer_->tilings().num_tilings());
702 used_tilings.clear(); 702 used_tilings.clear();
703 active_layer_->CleanUpTilingsOnActiveLayer(used_tilings); 703 active_layer_->CleanUpTilingsOnActiveLayer(used_tilings);
704 ASSERT_EQ(2u, active_layer_->tilings().num_tilings()); 704 ASSERT_EQ(2u, active_layer_->tilings().num_tilings());
705 } 705 }
706 706
707 } // namespace 707 } // namespace
708 } // namespace cc 708 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_tree_host_unittest_delegated.cc ('k') | cc/test/fake_picture_layer_tiling_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698