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

Side by Side Diff: cc/layers/picture_image_layer.cc

Issue 1783613004: CC Animation: Erase cc::LayerSettings everywhere. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@eraseandroid
Patch Set: Rebase. Created 4 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
« no previous file with comments | « cc/layers/picture_image_layer.h ('k') | cc/layers/picture_image_layer_unittest.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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/layers/picture_image_layer.h" 5 #include "cc/layers/picture_image_layer.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "cc/layers/picture_image_layer_impl.h" 9 #include "cc/layers/picture_image_layer_impl.h"
10 #include "cc/playback/display_item_list_settings.h" 10 #include "cc/playback/display_item_list_settings.h"
11 #include "cc/playback/drawing_display_item.h" 11 #include "cc/playback/drawing_display_item.h"
12 #include "third_party/skia/include/core/SkCanvas.h" 12 #include "third_party/skia/include/core/SkCanvas.h"
13 #include "third_party/skia/include/core/SkImage.h" 13 #include "third_party/skia/include/core/SkImage.h"
14 #include "third_party/skia/include/core/SkPictureRecorder.h" 14 #include "third_party/skia/include/core/SkPictureRecorder.h"
15 #include "ui/gfx/skia_util.h" 15 #include "ui/gfx/skia_util.h"
16 16
17 namespace cc { 17 namespace cc {
18 18
19 scoped_refptr<PictureImageLayer> PictureImageLayer::Create( 19 scoped_refptr<PictureImageLayer> PictureImageLayer::Create() {
20 const LayerSettings& settings) { 20 return make_scoped_refptr(new PictureImageLayer());
21 return make_scoped_refptr(new PictureImageLayer(settings));
22 } 21 }
23 22
24 PictureImageLayer::PictureImageLayer(const LayerSettings& settings) 23 PictureImageLayer::PictureImageLayer() : PictureLayer(this) {}
25 : PictureLayer(settings, this) {
26 }
27 24
28 PictureImageLayer::~PictureImageLayer() { 25 PictureImageLayer::~PictureImageLayer() {
29 ClearClient(); 26 ClearClient();
30 } 27 }
31 28
32 scoped_ptr<LayerImpl> PictureImageLayer::CreateLayerImpl( 29 scoped_ptr<LayerImpl> PictureImageLayer::CreateLayerImpl(
33 LayerTreeImpl* tree_impl) { 30 LayerTreeImpl* tree_impl) {
34 return PictureImageLayerImpl::Create(tree_impl, id(), is_mask()); 31 return PictureImageLayerImpl::Create(tree_impl, id(), is_mask());
35 } 32 }
36 33
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 91
95 bool PictureImageLayer::FillsBoundsCompletely() const { 92 bool PictureImageLayer::FillsBoundsCompletely() const {
96 return false; 93 return false;
97 } 94 }
98 95
99 size_t PictureImageLayer::GetApproximateUnsharedMemoryUsage() const { 96 size_t PictureImageLayer::GetApproximateUnsharedMemoryUsage() const {
100 return 0; 97 return 0;
101 } 98 }
102 99
103 } // namespace cc 100 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/picture_image_layer.h ('k') | cc/layers/picture_image_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698