| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 // Code path for plugins which supply their own mailbox. | 131 // Code path for plugins which supply their own mailbox. |
| 132 void SetTextureMailbox( | 132 void SetTextureMailbox( |
| 133 const TextureMailbox& mailbox, | 133 const TextureMailbox& mailbox, |
| 134 std::unique_ptr<SingleReleaseCallback> release_callback); | 134 std::unique_ptr<SingleReleaseCallback> release_callback); |
| 135 | 135 |
| 136 void SetNeedsDisplayRect(const gfx::Rect& dirty_rect) override; | 136 void SetNeedsDisplayRect(const gfx::Rect& dirty_rect) override; |
| 137 | 137 |
| 138 void SetLayerTreeHost(LayerTreeHost* layer_tree_host) override; | 138 void SetLayerTreeHost(LayerTreeHost* layer_tree_host) override; |
| 139 bool Update() override; | 139 bool Update() override; |
| 140 bool IsSnapped() override; |
| 140 void PushPropertiesTo(LayerImpl* layer) override; | 141 void PushPropertiesTo(LayerImpl* layer) override; |
| 141 | 142 |
| 142 protected: | 143 protected: |
| 143 explicit TextureLayer(TextureLayerClient* client); | 144 explicit TextureLayer(TextureLayerClient* client); |
| 144 ~TextureLayer() override; | 145 ~TextureLayer() override; |
| 145 bool HasDrawableContent() const override; | 146 bool HasDrawableContent() const override; |
| 146 | 147 |
| 147 private: | 148 private: |
| 148 void SetTextureMailboxInternal( | 149 void SetTextureMailboxInternal( |
| 149 const TextureMailbox& mailbox, | 150 const TextureMailbox& mailbox, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 163 bool blend_background_color_; | 164 bool blend_background_color_; |
| 164 | 165 |
| 165 std::unique_ptr<TextureMailboxHolder::MainThreadReference> holder_ref_; | 166 std::unique_ptr<TextureMailboxHolder::MainThreadReference> holder_ref_; |
| 166 bool needs_set_mailbox_; | 167 bool needs_set_mailbox_; |
| 167 | 168 |
| 168 DISALLOW_COPY_AND_ASSIGN(TextureLayer); | 169 DISALLOW_COPY_AND_ASSIGN(TextureLayer); |
| 169 }; | 170 }; |
| 170 | 171 |
| 171 } // namespace cc | 172 } // namespace cc |
| 172 #endif // CC_LAYERS_TEXTURE_LAYER_H_ | 173 #endif // CC_LAYERS_TEXTURE_LAYER_H_ |
| OLD | NEW |