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

Side by Side Diff: cc/thread_proxy.h

Issue 11367080: cc: Remove all remaining use of WebCore Rect/Point/Size types from the compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/test/layer_tree_test_common.cc ('k') | cc/thread_proxy.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_THREAD_PROXY_H_ 5 #ifndef CC_THREAD_PROXY_H_
6 #define CC_THREAD_PROXY_H_ 6 #define CC_THREAD_PROXY_H_
7 7
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "cc/animation_events.h" 9 #include "cc/animation_events.h"
10 #include "cc/completion_event.h" 10 #include "cc/completion_event.h"
(...skipping 12 matching lines...) Expand all
23 class Thread; 23 class Thread;
24 24
25 class ThreadProxy : public Proxy, LayerTreeHostImplClient, SchedulerClient, Reso urceUpdateControllerClient { 25 class ThreadProxy : public Proxy, LayerTreeHostImplClient, SchedulerClient, Reso urceUpdateControllerClient {
26 public: 26 public:
27 static scoped_ptr<Proxy> create(LayerTreeHost*); 27 static scoped_ptr<Proxy> create(LayerTreeHost*);
28 28
29 virtual ~ThreadProxy(); 29 virtual ~ThreadProxy();
30 30
31 // Proxy implementation 31 // Proxy implementation
32 virtual bool compositeAndReadback(void *pixels, const gfx::Rect&) OVERRIDE; 32 virtual bool compositeAndReadback(void *pixels, const gfx::Rect&) OVERRIDE;
33 virtual void startPageScaleAnimation(const IntSize& targetPosition, bool use Anchor, float scale, base::TimeDelta duration) OVERRIDE; 33 virtual void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnc hor, float scale, base::TimeDelta duration) OVERRIDE;
34 virtual void finishAllRendering() OVERRIDE; 34 virtual void finishAllRendering() OVERRIDE;
35 virtual bool isStarted() const OVERRIDE; 35 virtual bool isStarted() const OVERRIDE;
36 virtual bool initializeContext() OVERRIDE; 36 virtual bool initializeContext() OVERRIDE;
37 virtual void setSurfaceReady() OVERRIDE; 37 virtual void setSurfaceReady() OVERRIDE;
38 virtual void setVisible(bool) OVERRIDE; 38 virtual void setVisible(bool) OVERRIDE;
39 virtual bool initializeRenderer() OVERRIDE; 39 virtual bool initializeRenderer() OVERRIDE;
40 virtual bool recreateContext() OVERRIDE; 40 virtual bool recreateContext() OVERRIDE;
41 virtual void renderingStats(RenderingStats*) OVERRIDE; 41 virtual void renderingStats(RenderingStats*) OVERRIDE;
42 virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE; 42 virtual const RendererCapabilities& rendererCapabilities() const OVERRIDE;
43 virtual void loseContext() OVERRIDE; 43 virtual void loseContext() OVERRIDE;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 struct ReadbackRequest { 104 struct ReadbackRequest {
105 CompletionEvent completion; 105 CompletionEvent completion;
106 bool success; 106 bool success;
107 void* pixels; 107 void* pixels;
108 gfx::Rect rect; 108 gfx::Rect rect;
109 }; 109 };
110 void forceBeginFrameOnImplThread(CompletionEvent*); 110 void forceBeginFrameOnImplThread(CompletionEvent*);
111 void beginFrameCompleteOnImplThread(CompletionEvent*, ResourceUpdateQueue*); 111 void beginFrameCompleteOnImplThread(CompletionEvent*, ResourceUpdateQueue*);
112 void beginFrameAbortedOnImplThread(); 112 void beginFrameAbortedOnImplThread();
113 void requestReadbackOnImplThread(ReadbackRequest*); 113 void requestReadbackOnImplThread(ReadbackRequest*);
114 void requestStartPageScaleAnimationOnImplThread(IntSize targetPosition, bool useAnchor, float scale, base::TimeDelta duration); 114 void requestStartPageScaleAnimationOnImplThread(gfx::Vector2d targetOffset, bool useAnchor, float scale, base::TimeDelta duration);
115 void finishAllRenderingOnImplThread(CompletionEvent*); 115 void finishAllRenderingOnImplThread(CompletionEvent*);
116 void initializeImplOnImplThread(CompletionEvent*, InputHandler*); 116 void initializeImplOnImplThread(CompletionEvent*, InputHandler*);
117 void setSurfaceReadyOnImplThread(); 117 void setSurfaceReadyOnImplThread();
118 void setVisibleOnImplThread(CompletionEvent*, bool); 118 void setVisibleOnImplThread(CompletionEvent*, bool);
119 void initializeContextOnImplThread(scoped_ptr<GraphicsContext>); 119 void initializeContextOnImplThread(scoped_ptr<GraphicsContext>);
120 void initializeRendererOnImplThread(CompletionEvent*, bool* initializeSuccee ded, RendererCapabilities*); 120 void initializeRendererOnImplThread(CompletionEvent*, bool* initializeSuccee ded, RendererCapabilities*);
121 void layerTreeHostClosedOnImplThread(CompletionEvent*); 121 void layerTreeHostClosedOnImplThread(CompletionEvent*);
122 void setFullRootLayerDamageOnImplThread(); 122 void setFullRootLayerDamageOnImplThread();
123 void acquireLayerTexturesForMainThreadOnImplThread(CompletionEvent*); 123 void acquireLayerTexturesForMainThreadOnImplThread(CompletionEvent*);
124 void recreateContextOnImplThread(CompletionEvent*, scoped_ptr<GraphicsContex t>, bool* recreateSucceeded, RendererCapabilities*); 124 void recreateContextOnImplThread(CompletionEvent*, scoped_ptr<GraphicsContex t>, bool* recreateSucceeded, RendererCapabilities*);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 base::TimeDelta m_totalCommitTime; 174 base::TimeDelta m_totalCommitTime;
175 size_t m_totalCommitCount; 175 size_t m_totalCommitCount;
176 176
177 bool m_deferCommits; 177 bool m_deferCommits;
178 bool m_deferredCommitPending; 178 bool m_deferredCommitPending;
179 }; 179 };
180 180
181 } // namespace cc 181 } // namespace cc
182 182
183 #endif // CC_THREAD_PROXY_H_ 183 #endif // CC_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test_common.cc ('k') | cc/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698