| OLD | NEW |
| 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 #ifndef CC_PICTURE_LAYER_H_ | 5 #ifndef CC_PICTURE_LAYER_H_ |
| 6 #define CC_PICTURE_LAYER_H_ | 6 #define CC_PICTURE_LAYER_H_ |
| 7 | 7 |
| 8 #include "cc/layer.h" | 8 #include "cc/layer.h" |
| 9 #include "cc/picture_pile.h" | 9 #include "cc/picture_pile.h" |
| 10 #include "cc/occlusion_tracker.h" |
| 10 | 11 |
| 11 namespace cc { | 12 namespace cc { |
| 12 | 13 |
| 13 class ContentLayerClient; | 14 class ContentLayerClient; |
| 15 class ResourceUpdateQueue; |
| 16 struct RenderingStats; |
| 14 | 17 |
| 15 class CC_EXPORT PictureLayer : public Layer { | 18 class CC_EXPORT PictureLayer : public Layer { |
| 16 public: | 19 public: |
| 17 static scoped_refptr<PictureLayer> create(ContentLayerClient*); | 20 static scoped_refptr<PictureLayer> create(ContentLayerClient*); |
| 18 | 21 |
| 19 void clearClient() { client_ = 0; } | 22 void clearClient() { client_ = 0; } |
| 20 | 23 |
| 21 // Implement Layer interface | 24 // Implement Layer interface |
| 22 virtual bool drawsContent() const OVERRIDE; | 25 virtual bool drawsContent() const OVERRIDE; |
| 23 virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE; | 26 virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE; |
| 24 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; | 27 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; |
| 28 virtual void setNeedsDisplayRect(const gfx::RectF& layerRect) OVERRIDE; |
| 29 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, |
| 30 RenderingStats&) OVERRIDE; |
| 25 | 31 |
| 26 protected: | 32 protected: |
| 27 explicit PictureLayer(ContentLayerClient*); | 33 explicit PictureLayer(ContentLayerClient*); |
| 28 virtual ~PictureLayer(); | 34 virtual ~PictureLayer(); |
| 29 | 35 |
| 30 private: | 36 private: |
| 31 ContentLayerClient* client_; | 37 ContentLayerClient* client_; |
| 32 PicturePile pile_; | 38 PicturePile pile_; |
| 33 }; | 39 }; |
| 34 | 40 |
| 35 } // namespace cc | 41 } // namespace cc |
| 36 | 42 |
| 37 #endif // CC_PICTURE_LAYER_H_ | 43 #endif // CC_PICTURE_LAYER_H_ |
| OLD | NEW |