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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 11417002: First draft of TileManager's tile prioritzation system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 | « no previous file | cc/picture_layer_impl.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 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 15 matching lines...) Expand all
26 class FrameRateCounter; 26 class FrameRateCounter;
27 class HeadsUpDisplayLayerImpl; 27 class HeadsUpDisplayLayerImpl;
28 class LayerImpl; 28 class LayerImpl;
29 class LayerTreeHostImplTimeSourceAdapter; 29 class LayerTreeHostImplTimeSourceAdapter;
30 class PageScaleAnimation; 30 class PageScaleAnimation;
31 class RenderPassDrawQuad; 31 class RenderPassDrawQuad;
32 class ResourceProvider; 32 class ResourceProvider;
33 struct RendererCapabilities; 33 struct RendererCapabilities;
34 struct RenderingStats; 34 struct RenderingStats;
35 35
36 enum WhichTree {
37 // Note: these must be 0 and 1 because we index with them in various places,
38 // e.g. in Tile::priority_.
39 ACTIVE_TREE = 0,
40 PENDING_TREE = 1
41 };
42
36 // LayerTreeHost->Proxy callback interface. 43 // LayerTreeHost->Proxy callback interface.
37 class LayerTreeHostImplClient { 44 class LayerTreeHostImplClient {
38 public: 45 public:
39 virtual void didLoseContextOnImplThread() = 0; 46 virtual void didLoseContextOnImplThread() = 0;
40 virtual void onSwapBuffersCompleteOnImplThread() = 0; 47 virtual void onSwapBuffersCompleteOnImplThread() = 0;
41 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) = 0; 48 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) = 0;
42 virtual void onCanDrawStateChanged(bool canDraw) = 0; 49 virtual void onCanDrawStateChanged(bool canDraw) = 0;
43 virtual void setNeedsRedrawOnImplThread() = 0; 50 virtual void setNeedsRedrawOnImplThread() = 0;
44 virtual void setNeedsCommitOnImplThread() = 0; 51 virtual void setNeedsCommitOnImplThread() = 0;
45 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio nEventsVector>, base::Time wallClockTime) = 0; 52 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio nEventsVector>, base::Time wallClockTime) = 0;
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 361
355 size_t m_numImplThreadScrolls; 362 size_t m_numImplThreadScrolls;
356 size_t m_numMainThreadScrolls; 363 size_t m_numMainThreadScrolls;
357 364
358 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 365 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
359 }; 366 };
360 367
361 } // namespace cc 368 } // namespace cc
362 369
363 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 370 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698