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

Side by Side Diff: cc/trees/single_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/proxy.h ('k') | cc/trees/single_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_SINGLE_THREAD_PROXY_H_ 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_
6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 16 matching lines...) Expand all
27 virtual void FinishAllRendering() OVERRIDE; 27 virtual void FinishAllRendering() OVERRIDE;
28 virtual bool IsStarted() const OVERRIDE; 28 virtual bool IsStarted() const OVERRIDE;
29 virtual bool InitializeOutputSurface() OVERRIDE; 29 virtual bool InitializeOutputSurface() OVERRIDE;
30 virtual void SetSurfaceReady() OVERRIDE; 30 virtual void SetSurfaceReady() OVERRIDE;
31 virtual void SetVisible(bool visible) OVERRIDE; 31 virtual void SetVisible(bool visible) OVERRIDE;
32 virtual bool InitializeRenderer() OVERRIDE; 32 virtual bool InitializeRenderer() OVERRIDE;
33 virtual bool RecreateOutputSurface() OVERRIDE; 33 virtual bool RecreateOutputSurface() OVERRIDE;
34 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE; 34 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE;
35 virtual void SetNeedsAnimate() OVERRIDE; 35 virtual void SetNeedsAnimate() OVERRIDE;
36 virtual void SetNeedsCommit() OVERRIDE; 36 virtual void SetNeedsCommit() OVERRIDE;
37 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) OVERRIDE; 37 virtual void SetNeedsRedraw(gfx::Rect damage_rect) OVERRIDE;
38 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; 38 virtual void SetDeferCommits(bool defer_commits) OVERRIDE;
39 virtual bool CommitRequested() const OVERRIDE; 39 virtual bool CommitRequested() const OVERRIDE;
40 virtual void MainThreadHasStoppedFlinging() OVERRIDE {} 40 virtual void MainThreadHasStoppedFlinging() OVERRIDE {}
41 virtual void Start() OVERRIDE; 41 virtual void Start() OVERRIDE;
42 virtual void Stop() OVERRIDE; 42 virtual void Stop() OVERRIDE;
43 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; 43 virtual size_t MaxPartialTextureUpdates() const OVERRIDE;
44 virtual void AcquireLayerTextures() OVERRIDE {} 44 virtual void AcquireLayerTextures() OVERRIDE {}
45 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; 45 virtual void ForceSerializeOnSwapBuffers() OVERRIDE;
46 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE; 46 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE;
47 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; 47 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 private: 172 private:
173 DebugScopedSetImplThread impl_thread_; 173 DebugScopedSetImplThread impl_thread_;
174 DebugScopedSetMainThreadBlocked main_thread_blocked_; 174 DebugScopedSetMainThreadBlocked main_thread_blocked_;
175 175
176 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 176 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
177 }; 177 };
178 178
179 } // namespace cc 179 } // namespace cc
180 180
181 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 181 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/proxy.h ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698