Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: cc/layers/texture_layer.h

Issue 1175113010: cc: Rename visible_content_rect and content stuff on quads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename-visible-content-rect: moreandroid Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/layers/surface_layer_impl_unittest.cc ('k') | cc/layers/texture_layer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/layers/surface_layer_impl_unittest.cc ('k') | cc/layers/texture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698