| 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_LAYERS_TEXTURE_LAYER_H_ | 5 #ifndef CC_LAYERS_TEXTURE_LAYER_H_ |
| 6 #define CC_LAYERS_TEXTURE_LAYER_H_ | 6 #define CC_LAYERS_TEXTURE_LAYER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // Code path for plugins which supply their own mailbox. | 63 // Code path for plugins which supply their own mailbox. |
| 64 void SetTextureMailbox(const TextureMailbox& mailbox); | 64 void SetTextureMailbox(const TextureMailbox& mailbox); |
| 65 | 65 |
| 66 void WillModifyTexture(); | 66 void WillModifyTexture(); |
| 67 | 67 |
| 68 virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect) OVERRIDE; | 68 virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect) OVERRIDE; |
| 69 | 69 |
| 70 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE; | 70 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE; |
| 71 virtual bool DrawsContent() const OVERRIDE; | 71 virtual bool DrawsContent() const OVERRIDE; |
| 72 virtual void Update(ResourceUpdateQueue* queue, | 72 virtual void Update(ResourceUpdateQueue* queue, |
| 73 const OcclusionTracker* occlusion, | 73 const OcclusionTracker* occlusion) OVERRIDE; |
| 74 RenderingStats* stats) OVERRIDE; | |
| 75 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; | 74 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; |
| 76 virtual bool BlocksPendingCommit() const OVERRIDE; | 75 virtual bool BlocksPendingCommit() const OVERRIDE; |
| 77 | 76 |
| 78 virtual bool CanClipSelf() const OVERRIDE; | 77 virtual bool CanClipSelf() const OVERRIDE; |
| 79 | 78 |
| 80 protected: | 79 protected: |
| 81 TextureLayer(TextureLayerClient* client, bool uses_mailbox); | 80 TextureLayer(TextureLayerClient* client, bool uses_mailbox); |
| 82 virtual ~TextureLayer(); | 81 virtual ~TextureLayer(); |
| 83 | 82 |
| 84 private: | 83 private: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 97 | 96 |
| 98 unsigned texture_id_; | 97 unsigned texture_id_; |
| 99 TextureMailbox texture_mailbox_; | 98 TextureMailbox texture_mailbox_; |
| 100 bool own_mailbox_; | 99 bool own_mailbox_; |
| 101 | 100 |
| 102 DISALLOW_COPY_AND_ASSIGN(TextureLayer); | 101 DISALLOW_COPY_AND_ASSIGN(TextureLayer); |
| 103 }; | 102 }; |
| 104 | 103 |
| 105 } | 104 } |
| 106 #endif // CC_LAYERS_TEXTURE_LAYER_H_ | 105 #endif // CC_LAYERS_TEXTURE_LAYER_H_ |
| OLD | NEW |