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

Side by Side Diff: cc/trees/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/layer_tree_host_unittest_occlusion.cc ('k') | cc/trees/single_thread_proxy.h » ('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_PROXY_H_ 5 #ifndef CC_TREES_PROXY_H_
6 #define CC_TREES_PROXY_H_ 6 #define CC_TREES_PROXY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual bool InitializeRenderer() = 0; 69 virtual bool InitializeRenderer() = 0;
70 70
71 // Attempts to recreate the context and layer renderer after a context lost. 71 // Attempts to recreate the context and layer renderer after a context lost.
72 // Returns false if the renderer couldn't be reinitialized. 72 // Returns false if the renderer couldn't be reinitialized.
73 virtual bool RecreateOutputSurface() = 0; 73 virtual bool RecreateOutputSurface() = 0;
74 74
75 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; 75 virtual const RendererCapabilities& GetRendererCapabilities() const = 0;
76 76
77 virtual void SetNeedsAnimate() = 0; 77 virtual void SetNeedsAnimate() = 0;
78 virtual void SetNeedsCommit() = 0; 78 virtual void SetNeedsCommit() = 0;
79 virtual void SetNeedsRedraw(const gfx::Rect& damage_rect) = 0; 79 virtual void SetNeedsRedraw(gfx::Rect damage_rect) = 0;
80 80
81 // Defers commits until it is reset. It is only supported when in threaded 81 // Defers commits until it is reset. It is only supported when in threaded
82 // mode. It's an error to make a sync call like CompositeAndReadback while 82 // mode. It's an error to make a sync call like CompositeAndReadback while
83 // commits are deferred. 83 // commits are deferred.
84 virtual void SetDeferCommits(bool defer_commits) = 0; 84 virtual void SetDeferCommits(bool defer_commits) = 0;
85 85
86 virtual void MainThreadHasStoppedFlinging() = 0; 86 virtual void MainThreadHasStoppedFlinging() = 0;
87 87
88 virtual bool CommitRequested() const = 0; 88 virtual bool CommitRequested() const = 0;
89 89
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} 143 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {}
144 ~DebugScopedSetMainThreadBlocked() {} 144 ~DebugScopedSetMainThreadBlocked() {}
145 private: 145 private:
146 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); 146 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked);
147 }; 147 };
148 #endif 148 #endif
149 149
150 } // namespace cc 150 } // namespace cc
151 151
152 #endif // CC_TREES_PROXY_H_ 152 #endif // CC_TREES_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_occlusion.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698