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