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_SINGLE_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_ |
6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ | 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/time.h" | 10 #include "base/time.h" |
11 #include "cc/animation/animation_events.h" | 11 #include "cc/animation/animation_events.h" |
| 12 #include "cc/output/begin_frame_args.h" |
12 #include "cc/trees/layer_tree_host_impl.h" | 13 #include "cc/trees/layer_tree_host_impl.h" |
13 #include "cc/trees/proxy.h" | 14 #include "cc/trees/proxy.h" |
14 | 15 |
15 namespace cc { | 16 namespace cc { |
16 | 17 |
17 class ContextProvider; | 18 class ContextProvider; |
18 class LayerTreeHost; | 19 class LayerTreeHost; |
19 | 20 |
20 class SingleThreadProxy : public Proxy, LayerTreeHostImplClient { | 21 class SingleThreadProxy : public Proxy, LayerTreeHostImplClient { |
21 public: | 22 public: |
(...skipping 22 matching lines...) Expand all Loading... |
44 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE; | 45 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE; |
45 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; | 46 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; |
46 virtual bool CommitPendingForTesting() OVERRIDE; | 47 virtual bool CommitPendingForTesting() OVERRIDE; |
47 | 48 |
48 // LayerTreeHostImplClient implementation | 49 // LayerTreeHostImplClient implementation |
49 virtual void DidTryInitializeRendererOnImplThread( | 50 virtual void DidTryInitializeRendererOnImplThread( |
50 bool success, | 51 bool success, |
51 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE; | 52 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE; |
52 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; | 53 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; |
53 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} | 54 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} |
54 virtual void BeginFrameOnImplThread(base::TimeTicks frame_time) | 55 virtual void BeginFrameOnImplThread(const BeginFrameArgs& args) |
55 OVERRIDE {} | 56 OVERRIDE {} |
56 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; | 57 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; |
57 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE; | 58 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE; |
58 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; | 59 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; |
59 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect dirty_rect) OVERRIDE; | 60 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect dirty_rect) OVERRIDE; |
60 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; | 61 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; |
61 virtual void SetNeedsCommitOnImplThread() OVERRIDE; | 62 virtual void SetNeedsCommitOnImplThread() OVERRIDE; |
62 virtual void PostAnimationEventsToMainThreadOnImplThread( | 63 virtual void PostAnimationEventsToMainThreadOnImplThread( |
63 scoped_ptr<AnimationEventsVector> events, | 64 scoped_ptr<AnimationEventsVector> events, |
64 base::Time wall_clock_time) OVERRIDE; | 65 base::Time wall_clock_time) OVERRIDE; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 private: | 173 private: |
173 DebugScopedSetImplThread impl_thread_; | 174 DebugScopedSetImplThread impl_thread_; |
174 DebugScopedSetMainThreadBlocked main_thread_blocked_; | 175 DebugScopedSetMainThreadBlocked main_thread_blocked_; |
175 | 176 |
176 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); | 177 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); |
177 }; | 178 }; |
178 | 179 |
179 } // namespace cc | 180 } // namespace cc |
180 | 181 |
181 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ | 182 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ |
OLD | NEW |