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

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

Issue 1122393003: CC: Plumb LayerSettings parameter for cc::Layer construction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 7 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.h ('k') | cc/test/layer_tree_host_common_test.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_picture_layer.h" 5 #include "cc/test/fake_picture_layer.h"
6 6
7 #include "cc/test/fake_picture_layer_impl.h" 7 #include "cc/test/fake_picture_layer_impl.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
11 FakePictureLayer::FakePictureLayer(ContentLayerClient* client) 11 FakePictureLayer::FakePictureLayer(const LayerSettings& settings,
12 : PictureLayer(client), 12 ContentLayerClient* client)
13 : PictureLayer(settings, client),
13 update_count_(0), 14 update_count_(0),
14 push_properties_count_(0), 15 push_properties_count_(0),
15 output_surface_created_count_(0), 16 output_surface_created_count_(0),
16 always_update_resources_(false), 17 always_update_resources_(false),
17 disable_lcd_text_(false) { 18 disable_lcd_text_(false) {
18 SetBounds(gfx::Size(1, 1)); 19 SetBounds(gfx::Size(1, 1));
19 SetIsDrawable(true); 20 SetIsDrawable(true);
20 } 21 }
21 22
22 FakePictureLayer::FakePictureLayer(ContentLayerClient* client, 23 FakePictureLayer::FakePictureLayer(const LayerSettings& settings,
24 ContentLayerClient* client,
23 scoped_ptr<RecordingSource> source) 25 scoped_ptr<RecordingSource> source)
24 : PictureLayer(client, source.Pass()), 26 : PictureLayer(settings, client, source.Pass()),
25 update_count_(0), 27 update_count_(0),
26 push_properties_count_(0), 28 push_properties_count_(0),
27 output_surface_created_count_(0), 29 output_surface_created_count_(0),
28 always_update_resources_(false), 30 always_update_resources_(false),
29 disable_lcd_text_(false) { 31 disable_lcd_text_(false) {
30 SetBounds(gfx::Size(1, 1)); 32 SetBounds(gfx::Size(1, 1));
31 SetIsDrawable(true); 33 SetIsDrawable(true);
32 } 34 }
33 35
34 FakePictureLayer::~FakePictureLayer() {} 36 FakePictureLayer::~FakePictureLayer() {}
(...skipping 18 matching lines...) Expand all
53 PictureLayer::PushPropertiesTo(layer); 55 PictureLayer::PushPropertiesTo(layer);
54 push_properties_count_++; 56 push_properties_count_++;
55 } 57 }
56 58
57 void FakePictureLayer::OnOutputSurfaceCreated() { 59 void FakePictureLayer::OnOutputSurfaceCreated() {
58 PictureLayer::OnOutputSurfaceCreated(); 60 PictureLayer::OnOutputSurfaceCreated();
59 output_surface_created_count_++; 61 output_surface_created_count_++;
60 } 62 }
61 63
62 } // namespace cc 64 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_picture_layer.h ('k') | cc/test/layer_tree_host_common_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698