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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 11529006: [cc] Fold more update calls into updateDrawProperties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « no previous file | cc/layer_tree_host_impl.cc » ('j') | cc/layer_tree_host_impl.cc » ('J')
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 CC_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_
6 #define CC_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 bool needsAnimateLayers() const { return m_needsAnimateLayers; } 249 bool needsAnimateLayers() const { return m_needsAnimateLayers; }
250 void setNeedsAnimateLayers() { m_needsAnimateLayers = true; } 250 void setNeedsAnimateLayers() { m_needsAnimateLayers = true; }
251 251
252 bool needsUpdateDrawProperties() const { return m_needsUpdateDrawProperties; } 252 bool needsUpdateDrawProperties() const { return m_needsUpdateDrawProperties; }
253 void setNeedsUpdateDrawProperties() { m_needsUpdateDrawProperties = true; } 253 void setNeedsUpdateDrawProperties() { m_needsUpdateDrawProperties = true; }
254 254
255 void setNeedsRedraw(); 255 void setNeedsRedraw();
256 256
257 void renderingStats(RenderingStats*) const; 257 void renderingStats(RenderingStats*) const;
258 258
259 void updateRootScrollLayerImplTransform(); 259 void updateDrawProperties();
danakj 2012/12/11 15:49:24 You shouldn't need to make this public, we already
260 260
261 void sendManagedMemoryStats( 261 void sendManagedMemoryStats(
262 size_t memoryVisibleBytes, 262 size_t memoryVisibleBytes,
263 size_t memoryVisibleAndNearbyBytes, 263 size_t memoryVisibleAndNearbyBytes,
264 size_t memoryUseBytes); 264 size_t memoryUseBytes);
265 265
266 FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); } 266 FrameRateCounter* fpsCounter() const { return m_fpsCounter.get(); }
267 DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get() ; } 267 DebugRectHistory* debugRectHistory() const { return m_debugRectHistory.get() ; }
268 ResourceProvider* resourceProvider() const { return m_resourceProvider.get() ; } 268 ResourceProvider* resourceProvider() const { return m_resourceProvider.get() ; }
269 Proxy* proxy() const { return m_proxy; } 269 Proxy* proxy() const { return m_proxy; }
(...skipping 30 matching lines...) Expand all
300 300
301 template<typename RenderPassCuller> 301 template<typename RenderPassCuller>
302 static void removeRenderPasses(RenderPassCuller, FrameData&); 302 static void removeRenderPasses(RenderPassCuller, FrameData&);
303 303
304 protected: 304 protected:
305 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy* ); 305 LayerTreeHostImpl(const LayerTreeSettings&, LayerTreeHostImplClient*, Proxy* );
306 306
307 void animatePageScale(base::TimeTicks monotonicTime); 307 void animatePageScale(base::TimeTicks monotonicTime);
308 void animateScrollbars(base::TimeTicks monotonicTime); 308 void animateScrollbars(base::TimeTicks monotonicTime);
309 309
310 void updateDrawProperties();
311
312 // Exposed for testing. 310 // Exposed for testing.
313 void calculateRenderSurfaceLayerList(LayerList&); 311 void calculateRenderSurfaceLayerList(LayerList&);
314 void resetNeedsUpdateDrawPropertiesForTesting() { m_needsUpdateDrawPropertie s = false; } 312 void resetNeedsUpdateDrawPropertiesForTesting() { m_needsUpdateDrawPropertie s = false; }
315 313
316 // Virtual for testing. 314 // Virtual for testing.
317 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo ckTime); 315 virtual void animateLayers(base::TimeTicks monotonicTime, base::Time wallClo ckTime);
318 316
319 // Virtual for testing. 317 // Virtual for testing.
320 virtual base::TimeDelta lowFrequencyAnimationInterval() const; 318 virtual base::TimeDelta lowFrequencyAnimationInterval() const;
321 319
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 size_t m_lastSentMemoryVisibleBytes; 396 size_t m_lastSentMemoryVisibleBytes;
399 size_t m_lastSentMemoryVisibleAndNearbyBytes; 397 size_t m_lastSentMemoryVisibleAndNearbyBytes;
400 size_t m_lastSentMemoryUseBytes; 398 size_t m_lastSentMemoryUseBytes;
401 399
402 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 400 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
403 }; 401 };
404 402
405 } // namespace cc 403 } // namespace cc
406 404
407 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 405 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer_tree_host_impl.cc » ('j') | cc/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698