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

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

Issue 373113003: Keeping track of descendants that draw content instead of recalcualting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made DrawsContent non-virtual Created 6 years, 5 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
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« cc/layers/layer.cc ('K') | « cc/layers/surface_layer.cc ('k') | cc/layers/texture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698