| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_LAYER_H_ | 5 #ifndef CC_LAYER_H_ |
| 6 #define CC_LAYER_H_ | 6 #define CC_LAYER_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "cc/cc_export.h" | 9 #include "cc/cc_export.h" |
| 10 #include "cc/layer_animation_controller.h" | 10 #include "cc/layer_animation_controller.h" |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 virtual void setLayerTreeHost(LayerTreeHost*); | 179 virtual void setLayerTreeHost(LayerTreeHost*); |
| 180 | 180 |
| 181 bool hasContributingDelegatedRenderPasses() const { return false; } | 181 bool hasContributingDelegatedRenderPasses() const { return false; } |
| 182 | 182 |
| 183 void setIsDrawable(bool); | 183 void setIsDrawable(bool); |
| 184 | 184 |
| 185 void setReplicaLayer(Layer*); | 185 void setReplicaLayer(Layer*); |
| 186 Layer* replicaLayer() const { return m_replicaLayer.get(); } | 186 Layer* replicaLayer() const { return m_replicaLayer.get(); } |
| 187 | 187 |
| 188 bool hasMask() const { return m_maskLayer; } | 188 bool hasMask() const { return !!m_maskLayer; } |
| 189 bool hasReplica() const { return m_replicaLayer; } | 189 bool hasReplica() const { return !!m_replicaLayer; } |
| 190 bool replicaHasMask() const { return m_replicaLayer && (m_maskLayer || m_rep
licaLayer->m_maskLayer); } | 190 bool replicaHasMask() const { return m_replicaLayer && (m_maskLayer || m_rep
licaLayer->m_maskLayer); } |
| 191 | 191 |
| 192 // These methods typically need to be overwritten by derived classes. | 192 // These methods typically need to be overwritten by derived classes. |
| 193 virtual bool drawsContent() const; | 193 virtual bool drawsContent() const; |
| 194 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering
Stats&) { } | 194 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering
Stats&) { } |
| 195 virtual bool needMoreUpdates(); | 195 virtual bool needMoreUpdates(); |
| 196 virtual void setIsMask(bool) { } | 196 virtual void setIsMask(bool) { } |
| 197 virtual void bindContentsTexture() { } | 197 virtual void bindContentsTexture() { } |
| 198 | 198 |
| 199 void setDebugName(const std::string&); | 199 void setDebugName(const std::string&); |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 | 403 |
| 404 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; | 404 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; |
| 405 WebKit::WebLayerScrollClient* m_layerScrollClient; | 405 WebKit::WebLayerScrollClient* m_layerScrollClient; |
| 406 }; | 406 }; |
| 407 | 407 |
| 408 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); | 408 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); |
| 409 | 409 |
| 410 } // namespace cc | 410 } // namespace cc |
| 411 | 411 |
| 412 #endif // CC_LAYER_H_ | 412 #endif // CC_LAYER_H_ |
| OLD | NEW |