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

Side by Side Diff: cc/picture_layer.h

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 #ifndef CC_PICTURE_LAYER_H_
6 #define CC_PICTURE_LAYER_H_
7
8 #include "cc/layer.h"
9 #include "cc/picture.h"
10
11 namespace cc {
12
13 class ContentLayerClient;
14
15 class CC_EXPORT PictureLayer : public Layer {
16 public:
17 static scoped_refptr<PictureLayer> create(ContentLayerClient*);
18
19 void clearClient() { client_ = 0; }
20
21 // Implement Layer interface
22 virtual bool drawsContent() const OVERRIDE;
23 virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE;
24 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE;
25
26 protected:
27 explicit PictureLayer(ContentLayerClient*);
28 virtual ~PictureLayer();
29
30 private:
31 ContentLayerClient* client_;
32 Picture picture_;
33 };
34
35 } // namespace cc
36
37 #endif // CC_PICTURE_LAYER_H_
OLDNEW
« cc/picture.h ('K') | « cc/picture.cc ('k') | cc/picture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698