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_SINGLE_THREAD_PROXY_H_ | 5 #ifndef CC_SINGLE_THREAD_PROXY_H_ |
6 #define CC_SINGLE_THREAD_PROXY_H_ | 6 #define CC_SINGLE_THREAD_PROXY_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual void Stop() OVERRIDE; | 47 virtual void Stop() OVERRIDE; |
48 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; | 48 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; |
49 virtual void AcquireLayerTextures() OVERRIDE {} | 49 virtual void AcquireLayerTextures() OVERRIDE {} |
50 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; | 50 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; |
51 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE; | 51 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE; |
52 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; | 52 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; |
53 virtual bool CommitPendingForTesting() OVERRIDE; | 53 virtual bool CommitPendingForTesting() OVERRIDE; |
54 | 54 |
55 // LayerTreeHostImplClient implementation | 55 // LayerTreeHostImplClient implementation |
56 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; | 56 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; |
57 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; | 57 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} |
58 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, | 58 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, |
59 base::TimeDelta interval) OVERRIDE {} | 59 base::TimeDelta interval) OVERRIDE {} |
60 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE {} | 60 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE {} |
61 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE; | 61 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE; |
62 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; | 62 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; |
63 virtual void DidUploadVisibleHighResolutionTileOnImplThread() OVERRIDE; | 63 virtual void DidUploadVisibleHighResolutionTileOnImplThread() OVERRIDE; |
64 virtual void SetNeedsCommitOnImplThread() OVERRIDE; | 64 virtual void SetNeedsCommitOnImplThread() OVERRIDE; |
65 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; | 65 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; |
66 virtual void PostAnimationEventsToMainThreadOnImplThread( | 66 virtual void PostAnimationEventsToMainThreadOnImplThread( |
67 scoped_ptr<AnimationEventsVector> events, | 67 scoped_ptr<AnimationEventsVector> events, |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 private: | 168 private: |
169 DebugScopedSetImplThread impl_thread_; | 169 DebugScopedSetImplThread impl_thread_; |
170 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 170 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
171 | 171 |
172 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 172 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
173 }; | 173 }; |
174 | 174 |
175 } // namespace cc | 175 } // namespace cc |
176 | 176 |
177 #endif // CC_SINGLE_THREAD_PROXY_H_ | 177 #endif // CC_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |