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

Side by Side Diff: cc/test/fake_picture_layer_impl.cc

Issue 609663003: cc: Remove use of PassAs() and constructor-casting with scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cc-passas: PassAs-presubmit-warning Created 6 years, 2 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/test/fake_picture_layer.cc ('k') | cc/test/fake_tile_manager.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/test/fake_picture_layer_impl.h" 5 #include "cc/test/fake_picture_layer_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 #include "cc/resources/tile.h" 8 #include "cc/resources/tile.h"
9 #include "cc/trees/layer_tree_impl.h" 9 #include "cc/trees/layer_tree_impl.h"
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 : PictureLayerImpl(tree_impl, id), 43 : PictureLayerImpl(tree_impl, id),
44 append_quads_count_(0), 44 append_quads_count_(0),
45 did_become_active_call_count_(0), 45 did_become_active_call_count_(0),
46 has_valid_tile_priorities_(false), 46 has_valid_tile_priorities_(false),
47 use_set_valid_tile_priorities_flag_(false), 47 use_set_valid_tile_priorities_flag_(false),
48 release_resources_count_(0) { 48 release_resources_count_(0) {
49 } 49 }
50 50
51 scoped_ptr<LayerImpl> FakePictureLayerImpl::CreateLayerImpl( 51 scoped_ptr<LayerImpl> FakePictureLayerImpl::CreateLayerImpl(
52 LayerTreeImpl* tree_impl) { 52 LayerTreeImpl* tree_impl) {
53 return make_scoped_ptr( 53 return make_scoped_ptr(new FakePictureLayerImpl(tree_impl, id()));
54 new FakePictureLayerImpl(tree_impl, id())).PassAs<LayerImpl>();
55 } 54 }
56 55
57 void FakePictureLayerImpl::AppendQuads( 56 void FakePictureLayerImpl::AppendQuads(
58 RenderPass* render_pass, 57 RenderPass* render_pass,
59 const OcclusionTracker<LayerImpl>& occlusion_tracker, 58 const OcclusionTracker<LayerImpl>& occlusion_tracker,
60 AppendQuadsData* append_quads_data) { 59 AppendQuadsData* append_quads_data) {
61 PictureLayerImpl::AppendQuads( 60 PictureLayerImpl::AppendQuads(
62 render_pass, occlusion_tracker, append_quads_data); 61 render_pass, occlusion_tracker, append_quads_data);
63 ++append_quads_count_; 62 ++append_quads_count_;
64 } 63 }
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 ? has_valid_tile_priorities_ 180 ? has_valid_tile_priorities_
182 : PictureLayerImpl::HasValidTilePriorities(); 181 : PictureLayerImpl::HasValidTilePriorities();
183 } 182 }
184 183
185 void FakePictureLayerImpl::ReleaseResources() { 184 void FakePictureLayerImpl::ReleaseResources() {
186 PictureLayerImpl::ReleaseResources(); 185 PictureLayerImpl::ReleaseResources();
187 ++release_resources_count_; 186 ++release_resources_count_;
188 } 187 }
189 188
190 } // namespace cc 189 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_picture_layer.cc ('k') | cc/test/fake_tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698