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

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

Issue 183563003: cc: Clean up OcclusionTracker template parameters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: occlusionparams: 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/test/fake_content_layer.h ('k') | cc/test/fake_painted_scrollbar_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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_content_layer.h" 5 #include "cc/test/fake_content_layer.h"
6 6
7 #include "cc/resources/content_layer_updater.h" 7 #include "cc/resources/content_layer_updater.h"
8 #include "cc/resources/prioritized_resource.h" 8 #include "cc/resources/prioritized_resource.h"
9 #include "cc/test/fake_content_layer_impl.h" 9 #include "cc/test/fake_content_layer_impl.h"
10 10
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 FakeContentLayer::~FakeContentLayer() {} 32 FakeContentLayer::~FakeContentLayer() {}
33 33
34 scoped_ptr<LayerImpl> FakeContentLayer::CreateLayerImpl( 34 scoped_ptr<LayerImpl> FakeContentLayer::CreateLayerImpl(
35 LayerTreeImpl* tree_impl) { 35 LayerTreeImpl* tree_impl) {
36 return FakeContentLayerImpl::Create(tree_impl, layer_id_).PassAs<LayerImpl>(); 36 return FakeContentLayerImpl::Create(tree_impl, layer_id_).PassAs<LayerImpl>();
37 } 37 }
38 38
39 bool FakeContentLayer::Update(ResourceUpdateQueue* queue, 39 bool FakeContentLayer::Update(ResourceUpdateQueue* queue,
40 const OcclusionTracker* occlusion) { 40 const OcclusionTracker<Layer>* occlusion) {
41 bool updated = ContentLayer::Update(queue, occlusion); 41 bool updated = ContentLayer::Update(queue, occlusion);
42 update_count_++; 42 update_count_++;
43 return updated || always_update_resources_; 43 return updated || always_update_resources_;
44 } 44 }
45 45
46 gfx::Rect FakeContentLayer::LastPaintRect() const { 46 gfx::Rect FakeContentLayer::LastPaintRect() const {
47 return (static_cast<FakeContentLayerUpdater*> 47 return (static_cast<FakeContentLayerUpdater*>
48 (Updater()))->content_rect(); 48 (Updater()))->content_rect();
49 } 49 }
50 50
51 void FakeContentLayer::PushPropertiesTo(LayerImpl* layer) { 51 void FakeContentLayer::PushPropertiesTo(LayerImpl* layer) {
52 ContentLayer::PushPropertiesTo(layer); 52 ContentLayer::PushPropertiesTo(layer);
53 push_properties_count_++; 53 push_properties_count_++;
54 } 54 }
55 55
56 void FakeContentLayer::OnOutputSurfaceCreated() { 56 void FakeContentLayer::OnOutputSurfaceCreated() {
57 ContentLayer::OnOutputSurfaceCreated(); 57 ContentLayer::OnOutputSurfaceCreated();
58 output_surface_created_count_++; 58 output_surface_created_count_++;
59 } 59 }
60 60
61 bool FakeContentLayer::HaveBackingAt(int i, int j) { 61 bool FakeContentLayer::HaveBackingAt(int i, int j) {
62 const PrioritizedResource* resource = ResourceAtForTesting(i, j); 62 const PrioritizedResource* resource = ResourceAtForTesting(i, j);
63 return resource && resource->have_backing_texture(); 63 return resource && resource->have_backing_texture();
64 } 64 }
65 65
66 } // namespace cc 66 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_content_layer.h ('k') | cc/test/fake_painted_scrollbar_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698