| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 // Code path for plugins which supply their own texture ID. | 61 // Code path for plugins which supply their own texture ID. |
| 62 void SetTextureId(unsigned texture_id); | 62 void SetTextureId(unsigned texture_id); |
| 63 | 63 |
| 64 // Code path for plugins which supply their own mailbox. | 64 // Code path for plugins which supply their own mailbox. |
| 65 bool uses_mailbox() const { return uses_mailbox_; } | 65 bool uses_mailbox() const { return uses_mailbox_; } |
| 66 void SetTextureMailbox(const TextureMailbox& mailbox); | 66 void SetTextureMailbox(const TextureMailbox& mailbox); |
| 67 | 67 |
| 68 void WillModifyTexture(); | 68 void WillModifyTexture(); |
| 69 | 69 |
| 70 // Returns true of the layer must use a mailbox with shared memory. |
| 71 bool MustUseSharedMemory(); |
| 72 |
| 70 virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect) OVERRIDE; | 73 virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect) OVERRIDE; |
| 71 | 74 |
| 72 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE; | 75 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE; |
| 73 virtual bool DrawsContent() const OVERRIDE; | 76 virtual bool DrawsContent() const OVERRIDE; |
| 74 virtual void Update(ResourceUpdateQueue* queue, | 77 virtual void Update(ResourceUpdateQueue* queue, |
| 75 const OcclusionTracker* occlusion, | 78 const OcclusionTracker* occlusion, |
| 76 RenderingStats* stats) OVERRIDE; | 79 RenderingStats* stats) OVERRIDE; |
| 77 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; | 80 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; |
| 78 virtual bool BlocksPendingCommit() const OVERRIDE; | 81 virtual bool BlocksPendingCommit() const OVERRIDE; |
| 79 | 82 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 | 119 |
| 117 unsigned texture_id_; | 120 unsigned texture_id_; |
| 118 scoped_refptr<MailboxHolder> holder_; | 121 scoped_refptr<MailboxHolder> holder_; |
| 119 bool needs_set_mailbox_; | 122 bool needs_set_mailbox_; |
| 120 | 123 |
| 121 DISALLOW_COPY_AND_ASSIGN(TextureLayer); | 124 DISALLOW_COPY_AND_ASSIGN(TextureLayer); |
| 122 }; | 125 }; |
| 123 | 126 |
| 124 } // namespace cc | 127 } // namespace cc |
| 125 #endif // CC_LAYERS_TEXTURE_LAYER_H_ | 128 #endif // CC_LAYERS_TEXTURE_LAYER_H_ |
| OLD | NEW |