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

Side by Side Diff: cc/layer_tree_host.h

Issue 11270047: cc: Rename TextureUpdate to ResourceUpdate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sort includes and forward declarations. Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « cc/layer.h ('k') | cc/layer_tree_host.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 CCLayerTreeHost_h 5 #ifndef CCLayerTreeHost_h
6 #define CCLayerTreeHost_h 6 #define CCLayerTreeHost_h
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "IntRect.h" 10 #include "IntRect.h"
(...skipping 25 matching lines...) Expand all
36 } // namespace BASE_HASH_NAMESPACE 36 } // namespace BASE_HASH_NAMESPACE
37 #endif // COMPILER 37 #endif // COMPILER
38 38
39 namespace cc { 39 namespace cc {
40 40
41 class FontAtlas; 41 class FontAtlas;
42 class Layer; 42 class Layer;
43 class LayerTreeHostImpl; 43 class LayerTreeHostImpl;
44 class LayerTreeHostImplClient; 44 class LayerTreeHostImplClient;
45 class PrioritizedTextureManager; 45 class PrioritizedTextureManager;
46 class TextureUpdateQueue; 46 class ResourceUpdateQueue;
47 class HeadsUpDisplayLayer; 47 class HeadsUpDisplayLayer;
48 class Region; 48 class Region;
49 struct ScrollAndScaleSet; 49 struct ScrollAndScaleSet;
50 50
51 struct LayerTreeSettings { 51 struct LayerTreeSettings {
52 LayerTreeSettings(); 52 LayerTreeSettings();
53 ~LayerTreeSettings(); 53 ~LayerTreeSettings();
54 54
55 bool acceleratePainting; 55 bool acceleratePainting;
56 bool showFPSCounter; 56 bool showFPSCounter;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 RecreateFailedButTryAgain, 121 RecreateFailedButTryAgain,
122 RecreateFailedAndGaveUp, 122 RecreateFailedAndGaveUp,
123 }; 123 };
124 RecreateResult recreateContext(); 124 RecreateResult recreateContext();
125 void didCommitAndDrawFrame() { m_client->didCommitAndDrawFrame(); } 125 void didCommitAndDrawFrame() { m_client->didCommitAndDrawFrame(); }
126 void didCompleteSwapBuffers() { m_client->didCompleteSwapBuffers(); } 126 void didCompleteSwapBuffers() { m_client->didCompleteSwapBuffers(); }
127 void deleteContentsTexturesOnImplThread(ResourceProvider*); 127 void deleteContentsTexturesOnImplThread(ResourceProvider*);
128 virtual void acquireLayerTextures(); 128 virtual void acquireLayerTextures();
129 // Returns false if we should abort this frame due to initialization failure . 129 // Returns false if we should abort this frame due to initialization failure .
130 bool initializeRendererIfNeeded(); 130 bool initializeRendererIfNeeded();
131 void updateLayers(TextureUpdateQueue&, size_t contentsMemoryLimitBytes); 131 void updateLayers(ResourceUpdateQueue&, size_t contentsMemoryLimitBytes);
132 132
133 LayerTreeHostClient* client() { return m_client; } 133 LayerTreeHostClient* client() { return m_client; }
134 134
135 // Only used when compositing on the main thread. 135 // Only used when compositing on the main thread.
136 void composite(); 136 void composite();
137 void scheduleComposite(); 137 void scheduleComposite();
138 138
139 // Composites and attempts to read back the result into the provided 139 // Composites and attempts to read back the result into the provided
140 // buffer. If it wasn't possible, e.g. due to context lost, will return 140 // buffer. If it wasn't possible, e.g. due to context lost, will return
141 // false. 141 // false.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 protected: 207 protected:
208 LayerTreeHost(LayerTreeHostClient*, const LayerTreeSettings&); 208 LayerTreeHost(LayerTreeHostClient*, const LayerTreeSettings&);
209 bool initialize(); 209 bool initialize();
210 210
211 private: 211 private:
212 typedef std::vector<scoped_refptr<Layer> > LayerList; 212 typedef std::vector<scoped_refptr<Layer> > LayerList;
213 213
214 void initializeRenderer(); 214 void initializeRenderer();
215 215
216 void update(Layer*, TextureUpdateQueue&, const OcclusionTracker*); 216 void update(Layer*, ResourceUpdateQueue&, const OcclusionTracker*);
217 bool paintLayerContents(const LayerList&, TextureUpdateQueue&); 217 bool paintLayerContents(const LayerList&, ResourceUpdateQueue&);
218 bool paintMasksForRenderSurface(Layer*, TextureUpdateQueue&); 218 bool paintMasksForRenderSurface(Layer*, ResourceUpdateQueue&);
219 219
220 void updateLayers(Layer*, TextureUpdateQueue&); 220 void updateLayers(Layer*, ResourceUpdateQueue&);
221 void triggerPrepaint(); 221 void triggerPrepaint();
222 222
223 void prioritizeTextures(const LayerList&, OverdrawMetrics&); 223 void prioritizeTextures(const LayerList&, OverdrawMetrics&);
224 void setPrioritiesForSurfaces(size_t surfaceMemoryBytes); 224 void setPrioritiesForSurfaces(size_t surfaceMemoryBytes);
225 void setPrioritiesForLayers(const LayerList&); 225 void setPrioritiesForLayers(const LayerList&);
226 size_t calculateMemoryForRenderSurfaces(const LayerList& updateList); 226 size_t calculateMemoryForRenderSurfaces(const LayerList& updateList);
227 227
228 void animateLayers(double monotonicTime); 228 void animateLayers(double monotonicTime);
229 bool animateLayersRecursive(Layer* current, double monotonicTime); 229 bool animateLayersRecursive(Layer* current, double monotonicTime);
230 void setAnimationEventsRecursive(const AnimationEventsVector&, Layer*, doubl e wallClockTime); 230 void setAnimationEventsRecursive(const AnimationEventsVector&, Layer*, doubl e wallClockTime);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 size_t m_partialTextureUpdateRequests; 275 size_t m_partialTextureUpdateRequests;
276 276
277 static bool s_needsFilterContext; 277 static bool s_needsFilterContext;
278 278
279 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 279 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
280 }; 280 };
281 281
282 } // namespace cc 282 } // namespace cc
283 283
284 #endif 284 #endif
OLDNEW
« no previous file with comments | « cc/layer.h ('k') | cc/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698