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

Side by Side Diff: cc/trees/thread_proxy.h

Issue 14301021: cc: Don't pass simple well-defined classes by reference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/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_TREES_THREAD_PROXY_H_ 5 #ifndef CC_TREES_THREAD_PROXY_H_
6 #define CC_TREES_THREAD_PROXY_H_ 6 #define CC_TREES_THREAD_PROXY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual void FinishAllRendering() OVERRIDE; 42 virtual void FinishAllRendering() OVERRIDE;
43 virtual bool IsStarted() const OVERRIDE; 43 virtual bool IsStarted() const OVERRIDE;
44 virtual bool InitializeOutputSurface() OVERRIDE; 44 virtual bool InitializeOutputSurface() OVERRIDE;
45 virtual void SetSurfaceReady() OVERRIDE; 45 virtual void SetSurfaceReady() OVERRIDE;
46 virtual void SetVisible(bool visible) OVERRIDE; 46 virtual void SetVisible(bool visible) OVERRIDE;
47 virtual bool InitializeRenderer() OVERRIDE; 47 virtual bool InitializeRenderer() OVERRIDE;
48 virtual bool RecreateOutputSurface() OVERRIDE; 48 virtual bool RecreateOutputSurface() OVERRIDE;
49 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE; 49 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE;
50 virtual void SetNeedsAnimate() OVERRIDE; 50 virtual void SetNeedsAnimate() OVERRIDE;
51 virtual void SetNeedsCommit() OVERRIDE; 51 virtual void SetNeedsCommit() OVERRIDE;
52 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) OVERRIDE; 52 virtual void SetNeedsRedraw(gfx::Rect damage_rect) OVERRIDE;
53 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; 53 virtual void SetDeferCommits(bool defer_commits) OVERRIDE;
54 virtual bool CommitRequested() const OVERRIDE; 54 virtual bool CommitRequested() const OVERRIDE;
55 virtual void MainThreadHasStoppedFlinging() OVERRIDE; 55 virtual void MainThreadHasStoppedFlinging() OVERRIDE;
56 virtual void Start() OVERRIDE; 56 virtual void Start() OVERRIDE;
57 virtual void Stop() OVERRIDE; 57 virtual void Stop() OVERRIDE;
58 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; 58 virtual size_t MaxPartialTextureUpdates() const OVERRIDE;
59 virtual void AcquireLayerTextures() OVERRIDE; 59 virtual void AcquireLayerTextures() OVERRIDE;
60 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; 60 virtual void ForceSerializeOnSwapBuffers() OVERRIDE;
61 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE; 61 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE;
62 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; 62 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 InputHandler* input_handler); 157 InputHandler* input_handler);
158 void SetSurfaceReadyOnImplThread(); 158 void SetSurfaceReadyOnImplThread();
159 void SetVisibleOnImplThread(CompletionEvent* completion, bool visible); 159 void SetVisibleOnImplThread(CompletionEvent* completion, bool visible);
160 void InitializeOutputSurfaceOnImplThread( 160 void InitializeOutputSurfaceOnImplThread(
161 scoped_ptr<OutputSurface> output_surface); 161 scoped_ptr<OutputSurface> output_surface);
162 void InitializeRendererOnImplThread(CompletionEvent* completion, 162 void InitializeRendererOnImplThread(CompletionEvent* completion,
163 bool* initialize_succeeded, 163 bool* initialize_succeeded,
164 RendererCapabilities* capabilities); 164 RendererCapabilities* capabilities);
165 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); 165 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion);
166 void ManageTilesOnImplThread(); 166 void ManageTilesOnImplThread();
167 void SetViewportDamageOnImplThread(const gfx::Rect& damage_rect); 167 void SetViewportDamageOnImplThread(gfx::Rect damage_rect);
168 void AcquireLayerTexturesForMainThreadOnImplThread( 168 void AcquireLayerTexturesForMainThreadOnImplThread(
169 CompletionEvent* completion); 169 CompletionEvent* completion);
170 void RecreateOutputSurfaceOnImplThread( 170 void RecreateOutputSurfaceOnImplThread(
171 CompletionEvent* completion, 171 CompletionEvent* completion,
172 scoped_ptr<OutputSurface> output_surface, 172 scoped_ptr<OutputSurface> output_surface,
173 scoped_refptr<cc::ContextProvider> offscreen_context_provider, 173 scoped_refptr<cc::ContextProvider> offscreen_context_provider,
174 bool* recreate_succeeded, 174 bool* recreate_succeeded,
175 RendererCapabilities* capabilities); 175 RendererCapabilities* capabilities);
176 ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapInternal( 176 ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapInternal(
177 bool forced_draw); 177 bool forced_draw);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 258
259 base::TimeTicks smoothness_takes_priority_expiration_time_; 259 base::TimeTicks smoothness_takes_priority_expiration_time_;
260 bool renew_tree_priority_on_impl_thread_pending_; 260 bool renew_tree_priority_on_impl_thread_pending_;
261 261
262 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 262 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
263 }; 263 };
264 264
265 } // namespace cc 265 } // namespace cc
266 266
267 #endif // CC_TREES_THREAD_PROXY_H_ 267 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698