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

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

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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_content_layer_impl.h ('k') | cc/test/fake_delegated_renderer_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 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_impl.h" 5 #include "cc/test/fake_content_layer_impl.h"
6 6
7 namespace cc { 7 namespace cc {
8 8
9 FakeContentLayerImpl::FakeContentLayerImpl(LayerTreeImpl* tree_impl, int id) 9 FakeContentLayerImpl::FakeContentLayerImpl(
10 : TiledLayerImpl(tree_impl, id), lost_output_surface_count_(0) { 10 LayerTreeImpl* tree_impl,
11 int id,
12 scoped_refptr<LayerImpl::SyncedScrollOffset> synced_scroll_offset)
13 : TiledLayerImpl(tree_impl, id, synced_scroll_offset),
14 lost_output_surface_count_(0) {
11 } 15 }
12 16
13 FakeContentLayerImpl::~FakeContentLayerImpl() {} 17 FakeContentLayerImpl::~FakeContentLayerImpl() {}
14 18
15 scoped_ptr<LayerImpl> FakeContentLayerImpl::CreateLayerImpl( 19 scoped_ptr<LayerImpl> FakeContentLayerImpl::CreateLayerImpl(
16 LayerTreeImpl* tree_impl) { 20 LayerTreeImpl* tree_impl) {
17 return FakeContentLayerImpl::Create(tree_impl, id()); 21 return FakeContentLayerImpl::Create(tree_impl, id(), synced_scroll_offset());
18 } 22 }
19 23
20 bool FakeContentLayerImpl::HaveResourceForTileAt(int i, int j) { 24 bool FakeContentLayerImpl::HaveResourceForTileAt(int i, int j) {
21 return HasResourceIdForTileAt(i, j); 25 return HasResourceIdForTileAt(i, j);
22 } 26 }
23 27
24 void FakeContentLayerImpl::ReleaseResources() { 28 void FakeContentLayerImpl::ReleaseResources() {
25 TiledLayerImpl::ReleaseResources(); 29 TiledLayerImpl::ReleaseResources();
26 ++lost_output_surface_count_; 30 ++lost_output_surface_count_;
27 } 31 }
28 32
29 } // namespace cc 33 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_content_layer_impl.h ('k') | cc/test/fake_delegated_renderer_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698