OLD | NEW |
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_PROXY_H_ | 5 #ifndef CC_PROXY_H_ |
6 #define CC_PROXY_H_ | 6 #define CC_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" |
11 #include "base/time.h" | 11 #include "base/time.h" |
| 12 #include "base/values.h" |
12 #include "cc/cc_export.h" | 13 #include "cc/cc_export.h" |
13 #include "skia/ext/refptr.h" | 14 #include "skia/ext/refptr.h" |
14 #include "third_party/skia/include/core/SkPicture.h" | 15 #include "third_party/skia/include/core/SkPicture.h" |
15 | 16 |
16 namespace gfx { | 17 namespace gfx { |
17 class Rect; | 18 class Rect; |
18 class Vector2d; | 19 class Vector2d; |
19 } | 20 } |
20 | 21 |
21 namespace cc { | 22 namespace cc { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t
o finish before executing in the GPU | 93 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t
o finish before executing in the GPU |
93 // process. | 94 // process. |
94 virtual void forceSerializeOnSwapBuffers() = 0; | 95 virtual void forceSerializeOnSwapBuffers() = 0; |
95 | 96 |
96 // Maximum number of sub-region texture updates supported for each commit. | 97 // Maximum number of sub-region texture updates supported for each commit. |
97 virtual size_t maxPartialTextureUpdates() const = 0; | 98 virtual size_t maxPartialTextureUpdates() const = 0; |
98 | 99 |
99 virtual void acquireLayerTextures() = 0; | 100 virtual void acquireLayerTextures() = 0; |
100 | 101 |
101 virtual skia::RefPtr<SkPicture> capturePicture() = 0; | 102 virtual skia::RefPtr<SkPicture> capturePicture() = 0; |
| 103 virtual scoped_ptr<base::Value> asValue() const = 0; |
102 | 104 |
103 // Testing hooks | 105 // Testing hooks |
104 virtual bool commitPendingForTesting() = 0; | 106 virtual bool commitPendingForTesting() = 0; |
105 | 107 |
106 protected: | 108 protected: |
107 explicit Proxy(scoped_ptr<Thread> implThread); | 109 explicit Proxy(scoped_ptr<Thread> implThread); |
108 friend class DebugScopedSetImplThread; | 110 friend class DebugScopedSetImplThread; |
109 friend class DebugScopedSetMainThread; | 111 friend class DebugScopedSetMainThread; |
110 friend class DebugScopedSetMainThreadBlocked; | 112 friend class DebugScopedSetMainThreadBlocked; |
111 | 113 |
(...skipping 29 matching lines...) Expand all Loading... |
141 class DebugScopedSetMainThreadBlocked { | 143 class DebugScopedSetMainThreadBlocked { |
142 public: | 144 public: |
143 explicit DebugScopedSetMainThreadBlocked(Proxy*) { } | 145 explicit DebugScopedSetMainThreadBlocked(Proxy*) { } |
144 ~DebugScopedSetMainThreadBlocked() { } | 146 ~DebugScopedSetMainThreadBlocked() { } |
145 }; | 147 }; |
146 #endif | 148 #endif |
147 | 149 |
148 } | 150 } |
149 | 151 |
150 #endif // CC_PROXY_H_ | 152 #endif // CC_PROXY_H_ |
OLD | NEW |