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

Side by Side Diff: cc/picture_layer.cc

Issue 11265046: cc: Add some impl-side painting stub classes and APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "config.h"
6
7 #include "cc/picture_layer.h"
8 #include "cc/picture_layer_impl.h"
9
10 namespace cc {
11
12 scoped_refptr<PictureLayer> PictureLayer::create(ContentLayerClient* client) {
13 return make_scoped_refptr(new PictureLayer(client));
14 }
15
16 PictureLayer::PictureLayer(ContentLayerClient* client) :
17 client_(client) {
18 }
19
20 PictureLayer::~PictureLayer() {
21 }
22
23 bool PictureLayer::drawsContent() const {
24 return Layer::drawsContent() && client_;
25 }
26
27 scoped_ptr<LayerImpl> PictureLayer::createLayerImpl() {
28 return PictureLayerImpl::create(id()).PassAs<LayerImpl>();
29 }
30
31 void PictureLayer::pushPropertiesTo(LayerImpl* baseLayerImpl) {
32 PictureLayerImpl* layerImpl = static_cast<PictureLayerImpl*>(baseLayerImpl);
33 picture_.pushPropertiesTo(layerImpl->picture_);
34 }
35
36 } // namespace cc
OLDNEW
« cc/picture.h ('K') | « cc/picture_layer.h ('k') | cc/picture_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698