| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 // TextureLayer across all frames. | 137 // TextureLayer across all frames. |
| 138 // WARNING: DON'T ACTUALLY USE THIS WHAT YOU ARE DOING IS WRONG. | 138 // WARNING: DON'T ACTUALLY USE THIS WHAT YOU ARE DOING IS WRONG. |
| 139 // TODO(danakj): Remove this when pepper doesn't need it. crbug.com/350204 | 139 // TODO(danakj): Remove this when pepper doesn't need it. crbug.com/350204 |
| 140 void SetTextureMailboxWithoutReleaseCallback(const TextureMailbox& mailbox); | 140 void SetTextureMailboxWithoutReleaseCallback(const TextureMailbox& mailbox); |
| 141 | 141 |
| 142 void SetNeedsDisplayRect(const gfx::Rect& dirty_rect) override; | 142 void SetNeedsDisplayRect(const gfx::Rect& dirty_rect) override; |
| 143 | 143 |
| 144 void SetLayerTreeHost(LayerTreeHost* layer_tree_host) override; | 144 void SetLayerTreeHost(LayerTreeHost* layer_tree_host) override; |
| 145 bool Update(ResourceUpdateQueue* queue) override; | 145 bool Update(ResourceUpdateQueue* queue) override; |
| 146 void PushPropertiesTo(LayerImpl* layer) override; | 146 void PushPropertiesTo(LayerImpl* layer) override; |
| 147 SimpleEnclosedRegion VisibleContentOpaqueRegion() const override; | |
| 148 | 147 |
| 149 protected: | 148 protected: |
| 150 TextureLayer(const LayerSettings& settings, TextureLayerClient* client); | 149 TextureLayer(const LayerSettings& settings, TextureLayerClient* client); |
| 151 ~TextureLayer() override; | 150 ~TextureLayer() override; |
| 152 bool HasDrawableContent() const override; | 151 bool HasDrawableContent() const override; |
| 153 | 152 |
| 154 private: | 153 private: |
| 155 void SetTextureMailboxInternal( | 154 void SetTextureMailboxInternal( |
| 156 const TextureMailbox& mailbox, | 155 const TextureMailbox& mailbox, |
| 157 scoped_ptr<SingleReleaseCallback> release_callback, | 156 scoped_ptr<SingleReleaseCallback> release_callback, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 171 bool rate_limit_context_; | 170 bool rate_limit_context_; |
| 172 | 171 |
| 173 scoped_ptr<TextureMailboxHolder::MainThreadReference> holder_ref_; | 172 scoped_ptr<TextureMailboxHolder::MainThreadReference> holder_ref_; |
| 174 bool needs_set_mailbox_; | 173 bool needs_set_mailbox_; |
| 175 | 174 |
| 176 DISALLOW_COPY_AND_ASSIGN(TextureLayer); | 175 DISALLOW_COPY_AND_ASSIGN(TextureLayer); |
| 177 }; | 176 }; |
| 178 | 177 |
| 179 } // namespace cc | 178 } // namespace cc |
| 180 #endif // CC_LAYERS_TEXTURE_LAYER_H_ | 179 #endif // CC_LAYERS_TEXTURE_LAYER_H_ |
| OLD | NEW |