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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 12194015: cc: Rasterize cheap tiles immediately (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebased. Created 7 years, 10 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 | Annotate | Revision Log
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 virtual void setFullRootLayerDamage() OVERRIDE; 131 virtual void setFullRootLayerDamage() OVERRIDE;
132 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERR IDE; 132 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERR IDE;
133 virtual void enforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) O VERRIDE; 133 virtual void enforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) O VERRIDE;
134 virtual bool hasImplThread() const OVERRIDE; 134 virtual bool hasImplThread() const OVERRIDE;
135 virtual bool shouldClearRootRenderPass() const OVERRIDE; 135 virtual bool shouldClearRootRenderPass() const OVERRIDE;
136 virtual CompositorFrameMetadata makeCompositorFrameMetadata() const OVERRIDE ; 136 virtual CompositorFrameMetadata makeCompositorFrameMetadata() const OVERRIDE ;
137 137
138 // TileManagerClient implementation. 138 // TileManagerClient implementation.
139 virtual void ScheduleManageTiles() OVERRIDE; 139 virtual void ScheduleManageTiles() OVERRIDE;
140 virtual void DidUploadVisibleHighResolutionTile() OVERRIDE; 140 virtual void DidUploadVisibleHighResolutionTile() OVERRIDE;
141 virtual bool CanDoAnotherCheapRaster() const OVERRIDE;
142 virtual void DidPerformCheapRaster() OVERRIDE;
141 143
142 // OutputSurfaceClient implementation. 144 // OutputSurfaceClient implementation.
143 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) OVERRIDE; 145 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) OVERRIDE;
144 virtual void OnSendFrameToParentCompositorAck(const CompositorFrameAck&) OVE RRIDE; 146 virtual void OnSendFrameToParentCompositorAck(const CompositorFrameAck&) OVE RRIDE;
145 147
146 // Called from LayerTreeImpl. 148 // Called from LayerTreeImpl.
147 void OnCanDrawStateChangedForTree(LayerTreeImpl*); 149 void OnCanDrawStateChangedForTree(LayerTreeImpl*);
148 150
149 // Implementation 151 // Implementation
150 bool canDraw(); 152 bool canDraw();
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 int64 m_cumulativeNumMissingTiles; 364 int64 m_cumulativeNumMissingTiles;
363 365
364 size_t m_lastSentMemoryVisibleBytes; 366 size_t m_lastSentMemoryVisibleBytes;
365 size_t m_lastSentMemoryVisibleAndNearbyBytes; 367 size_t m_lastSentMemoryVisibleAndNearbyBytes;
366 size_t m_lastSentMemoryUseBytes; 368 size_t m_lastSentMemoryUseBytes;
367 369
368 base::TimeTicks m_currentFrameTime; 370 base::TimeTicks m_currentFrameTime;
369 371
370 scoped_ptr<AnimationRegistrar> m_animationRegistrar; 372 scoped_ptr<AnimationRegistrar> m_animationRegistrar;
371 373
374 int m_cheapRasterCount;
375 mutable base::TimeTicks m_cheapRasterDeadline;
376
372 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 377 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
373 }; 378 };
374 379
375 } // namespace cc 380 } // namespace cc
376 381
377 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 382 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/layer_tree_host_impl.cc » ('j') | cc/tile_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698