| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 // Use this for special cases where the same texture is used to back the | 128 // Use this for special cases where the same texture is used to back the |
| 129 // TextureLayer across all frames. | 129 // TextureLayer across all frames. |
| 130 // WARNING: DON'T ACTUALLY USE THIS WHAT YOU ARE DOING IS WRONG. | 130 // WARNING: DON'T ACTUALLY USE THIS WHAT YOU ARE DOING IS WRONG. |
| 131 // TODO(danakj): Remove this when pepper doesn't need it. crbug.com/350204 | 131 // TODO(danakj): Remove this when pepper doesn't need it. crbug.com/350204 |
| 132 void SetTextureMailboxWithoutReleaseCallback(const TextureMailbox& mailbox); | 132 void SetTextureMailboxWithoutReleaseCallback(const TextureMailbox& mailbox); |
| 133 | 133 |
| 134 virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect) OVERRIDE; | 134 virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect) OVERRIDE; |
| 135 | 135 |
| 136 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE; | 136 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE; |
| 137 virtual bool DrawsContent() const OVERRIDE; | 137 virtual void UpdateDrawsContent(bool draws_content) OVERRIDE; |
| 138 virtual bool Update(ResourceUpdateQueue* queue, | 138 virtual bool Update(ResourceUpdateQueue* queue, |
| 139 const OcclusionTracker<Layer>* occlusion) OVERRIDE; | 139 const OcclusionTracker<Layer>* occlusion) OVERRIDE; |
| 140 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; | 140 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; |
| 141 virtual Region VisibleContentOpaqueRegion() const OVERRIDE; | 141 virtual Region VisibleContentOpaqueRegion() const OVERRIDE; |
| 142 | 142 |
| 143 protected: | 143 protected: |
| 144 explicit TextureLayer(TextureLayerClient* client); | 144 explicit TextureLayer(TextureLayerClient* client); |
| 145 virtual ~TextureLayer(); | 145 virtual ~TextureLayer(); |
| 146 | 146 |
| 147 private: | 147 private: |
| (...skipping 15 matching lines...) Expand all Loading... |
| 163 bool rate_limit_context_; | 163 bool rate_limit_context_; |
| 164 | 164 |
| 165 scoped_ptr<TextureMailboxHolder::MainThreadReference> holder_ref_; | 165 scoped_ptr<TextureMailboxHolder::MainThreadReference> holder_ref_; |
| 166 bool needs_set_mailbox_; | 166 bool needs_set_mailbox_; |
| 167 | 167 |
| 168 DISALLOW_COPY_AND_ASSIGN(TextureLayer); | 168 DISALLOW_COPY_AND_ASSIGN(TextureLayer); |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 } // namespace cc | 171 } // namespace cc |
| 172 #endif // CC_LAYERS_TEXTURE_LAYER_H_ | 172 #endif // CC_LAYERS_TEXTURE_LAYER_H_ |
| OLD | NEW |