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

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

Issue 1336733002: Re-land: cc: Implement shared worker contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in last patch Created 5 years, 3 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
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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 virtual ~Proxy(); 54 virtual ~Proxy();
55 55
56 virtual void FinishAllRendering() = 0; 56 virtual void FinishAllRendering() = 0;
57 57
58 virtual bool IsStarted() const = 0; 58 virtual bool IsStarted() const = 0;
59 virtual bool CommitToActiveTree() const = 0; 59 virtual bool CommitToActiveTree() const = 0;
60 60
61 // Will call LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted 61 // Will call LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted
62 // with the result of this function. 62 // with the result of this function.
63 virtual void SetOutputSurface(scoped_ptr<OutputSurface> output_surface) = 0; 63 virtual void SetOutputSurface(OutputSurface* output_surface) = 0;
64 64
65 // Indicates that the compositing surface associated with our context is 65 // Indicates that the compositing surface associated with our context is
66 // ready to use. 66 // ready to use.
67 virtual void SetLayerTreeHostClientReady() = 0; 67 virtual void SetLayerTreeHostClientReady() = 0;
68 68
69 virtual void SetVisible(bool visible) = 0; 69 virtual void SetVisible(bool visible) = 0;
70 70
71 virtual void SetThrottleFrameProduction(bool throttle) = 0; 71 virtual void SetThrottleFrameProduction(bool throttle) = 0;
72 72
73 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; 73 virtual const RendererCapabilities& GetRendererCapabilities() const = 0;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} 155 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {}
156 ~DebugScopedSetMainThreadBlocked() {} 156 ~DebugScopedSetMainThreadBlocked() {}
157 private: 157 private:
158 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); 158 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked);
159 }; 159 };
160 #endif 160 #endif
161 161
162 } // namespace cc 162 } // namespace cc
163 163
164 #endif // CC_TREES_PROXY_H_ 164 #endif // CC_TREES_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698