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

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

Issue 348093004: Make cc output surface creation async (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sievers review Created 6 years, 6 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 void SetMainThreadBlocked(bool is_main_thread_blocked); 45 void SetMainThreadBlocked(bool is_main_thread_blocked);
46 void SetCurrentThreadIsImplThread(bool is_impl_thread); 46 void SetCurrentThreadIsImplThread(bool is_impl_thread);
47 #endif 47 #endif
48 48
49 virtual ~Proxy(); 49 virtual ~Proxy();
50 50
51 virtual void FinishAllRendering() = 0; 51 virtual void FinishAllRendering() = 0;
52 52
53 virtual bool IsStarted() const = 0; 53 virtual bool IsStarted() const = 0;
54 54
55 virtual void SetOutputSurface(scoped_ptr<OutputSurface>) = 0;
danakj 2014/06/25 17:43:09 Can you add comment about how this will cause Laye
enne (OOO) 2014/06/25 21:25:05 Done. After this patch, I want to revist that and
danakj 2014/06/25 21:25:50 +1
56
55 // Indicates that the compositing surface associated with our context is 57 // Indicates that the compositing surface associated with our context is
56 // ready to use. 58 // ready to use.
57 virtual void SetLayerTreeHostClientReady() = 0; 59 virtual void SetLayerTreeHostClientReady() = 0;
58 60
59 virtual void SetVisible(bool visible) = 0; 61 virtual void SetVisible(bool visible) = 0;
60 62
61 virtual const RendererCapabilities& GetRendererCapabilities() const = 0; 63 virtual const RendererCapabilities& GetRendererCapabilities() const = 0;
62 64
63 virtual void SetNeedsAnimate() = 0; 65 virtual void SetNeedsAnimate() = 0;
64 virtual void SetNeedsUpdateLayers() = 0; 66 virtual void SetNeedsUpdateLayers() = 0;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} 139 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {}
138 ~DebugScopedSetMainThreadBlocked() {} 140 ~DebugScopedSetMainThreadBlocked() {}
139 private: 141 private:
140 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); 142 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked);
141 }; 143 };
142 #endif 144 #endif
143 145
144 } // namespace cc 146 } // namespace cc
145 147
146 #endif // CC_TREES_PROXY_H_ 148 #endif // CC_TREES_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698