| 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/contents_scaling_layer.h" | 8 #include "cc/contents_scaling_layer.h" |
| 9 #include "cc/layer.h" | 9 #include "cc/layer.h" |
| 10 #include "cc/picture_pile.h" | 10 #include "cc/picture_pile.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // Implement Layer interface | 25 // Implement Layer interface |
| 26 virtual bool drawsContent() const OVERRIDE; | 26 virtual bool drawsContent() const OVERRIDE; |
| 27 virtual scoped_ptr<LayerImpl> createLayerImpl( | 27 virtual scoped_ptr<LayerImpl> createLayerImpl( |
| 28 LayerTreeImpl* treeImpl) OVERRIDE; | 28 LayerTreeImpl* treeImpl) OVERRIDE; |
| 29 virtual void setLayerTreeHost(LayerTreeHost* host) OVERRIDE; | 29 virtual void setLayerTreeHost(LayerTreeHost* host) OVERRIDE; |
| 30 virtual void pushPropertiesTo(LayerImpl* layer) OVERRIDE; | 30 virtual void pushPropertiesTo(LayerImpl* layer) OVERRIDE; |
| 31 virtual void setNeedsDisplayRect(const gfx::RectF& layerRect) OVERRIDE; | 31 virtual void setNeedsDisplayRect(const gfx::RectF& layerRect) OVERRIDE; |
| 32 virtual void update( | 32 virtual void update( |
| 33 ResourceUpdateQueue& queue, | 33 ResourceUpdateQueue& queue, |
| 34 const OcclusionTracker* occlusion, | 34 const OcclusionTracker* occlusion, |
| 35 RenderingStats& stats) OVERRIDE; | 35 RenderingStats* stats) OVERRIDE; |
| 36 virtual void setIsMask(bool is_mask) OVERRIDE; | 36 virtual void setIsMask(bool is_mask) OVERRIDE; |
| 37 | 37 |
| 38 protected: | 38 protected: |
| 39 explicit PictureLayer(ContentLayerClient* client); | 39 explicit PictureLayer(ContentLayerClient* client); |
| 40 virtual ~PictureLayer(); | 40 virtual ~PictureLayer(); |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 ContentLayerClient* client_; | 43 ContentLayerClient* client_; |
| 44 scoped_refptr<PicturePile> pile_; | 44 scoped_refptr<PicturePile> pile_; |
| 45 // Invalidation to use the next time update is called. | 45 // Invalidation to use the next time update is called. |
| 46 Region pending_invalidation_; | 46 Region pending_invalidation_; |
| 47 // Invalidation from the last time update was called. | 47 // Invalidation from the last time update was called. |
| 48 Region pile_invalidation_; | 48 Region pile_invalidation_; |
| 49 bool is_mask_; | 49 bool is_mask_; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace cc | 52 } // namespace cc |
| 53 | 53 |
| 54 #endif // CC_PICTURE_LAYER_H_ | 54 #endif // CC_PICTURE_LAYER_H_ |
| OLD | NEW |