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_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> | |
9 | |
10 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
11 #include "base/logging.h" | 9 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
13 #include "base/time.h" | 11 #include "base/time.h" |
14 #include "base/values.h" | 12 #include "base/values.h" |
15 #include "cc/base/cc_export.h" | 13 #include "cc/base/cc_export.h" |
16 #include "skia/ext/refptr.h" | 14 #include "skia/ext/refptr.h" |
17 #include "third_party/skia/include/core/SkPicture.h" | 15 #include "third_party/skia/include/core/SkPicture.h" |
18 | 16 |
19 namespace gfx { | 17 namespace gfx { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // Maximum number of sub-region texture updates supported for each commit. | 91 // Maximum number of sub-region texture updates supported for each commit. |
94 virtual size_t MaxPartialTextureUpdates() const = 0; | 92 virtual size_t MaxPartialTextureUpdates() const = 0; |
95 | 93 |
96 virtual void AcquireLayerTextures() = 0; | 94 virtual void AcquireLayerTextures() = 0; |
97 | 95 |
98 virtual skia::RefPtr<SkPicture> CapturePicture() = 0; | 96 virtual skia::RefPtr<SkPicture> CapturePicture() = 0; |
99 virtual scoped_ptr<base::Value> AsValue() const = 0; | 97 virtual scoped_ptr<base::Value> AsValue() const = 0; |
100 | 98 |
101 // Testing hooks | 99 // Testing hooks |
102 virtual bool CommitPendingForTesting() = 0; | 100 virtual bool CommitPendingForTesting() = 0; |
103 virtual std::string SchedulerStateAsStringForTesting(); | |
104 | 101 |
105 protected: | 102 protected: |
106 explicit Proxy(scoped_ptr<Thread> impl_thread); | 103 explicit Proxy(scoped_ptr<Thread> impl_thread); |
107 friend class DebugScopedSetImplThread; | 104 friend class DebugScopedSetImplThread; |
108 friend class DebugScopedSetMainThread; | 105 friend class DebugScopedSetMainThread; |
109 friend class DebugScopedSetMainThreadBlocked; | 106 friend class DebugScopedSetMainThreadBlocked; |
110 | 107 |
111 private: | 108 private: |
112 scoped_ptr<Thread> main_thread_; | 109 scoped_ptr<Thread> main_thread_; |
113 scoped_ptr<Thread> impl_thread_; | 110 scoped_ptr<Thread> impl_thread_; |
(...skipping 26 matching lines...) Expand all Loading... |
140 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} | 137 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} |
141 ~DebugScopedSetMainThreadBlocked() {} | 138 ~DebugScopedSetMainThreadBlocked() {} |
142 private: | 139 private: |
143 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); | 140 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); |
144 }; | 141 }; |
145 #endif | 142 #endif |
146 | 143 |
147 } // namespace cc | 144 } // namespace cc |
148 | 145 |
149 #endif // CC_TREES_PROXY_H_ | 146 #endif // CC_TREES_PROXY_H_ |
OLD | NEW |