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.
5 #ifndef CC_PICTURE_LAYER_H_
6 #define CC_PICTURE_LAYER_H_
9 #include "cc/picture_pile.h"
13 class ContentLayerClient
;
15 class CC_EXPORT PictureLayer
: public Layer
{
17 static scoped_refptr
<PictureLayer
> create(ContentLayerClient
*);
19 void clearClient() { client_
= 0; }
21 // Implement Layer interface
22 virtual bool drawsContent() const OVERRIDE
;
23 virtual scoped_ptr
<LayerImpl
> createLayerImpl() OVERRIDE
;
24 virtual void pushPropertiesTo(LayerImpl
*) OVERRIDE
;
27 explicit PictureLayer(ContentLayerClient
*);
28 virtual ~PictureLayer();
31 ContentLayerClient
* client_
;
37 #endif // CC_PICTURE_LAYER_H_