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

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

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « cc/trees/scoped_abort_remaining_swap_promises.h ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "cc/animation/animation_events.h" 12 #include "cc/animation/animation_events.h"
13 #include "cc/output/begin_frame_args.h" 13 #include "cc/output/begin_frame_args.h"
14 #include "cc/scheduler/scheduler.h" 14 #include "cc/scheduler/scheduler.h"
15 #include "cc/trees/blocking_task_runner.h" 15 #include "cc/trees/blocking_task_runner.h"
16 #include "cc/trees/layer_tree_host_impl.h" 16 #include "cc/trees/layer_tree_host_impl.h"
17 #include "cc/trees/proxy.h" 17 #include "cc/trees/proxy.h"
18 #include "cc/trees/proxy_timing_history.h" 18 #include "cc/trees/proxy_timing_history.h"
19 19
20 namespace cc { 20 namespace cc {
21 21
22 class BeginFrameSource; 22 class BeginFrameSource;
23 class ContextProvider; 23 class ContextProvider;
24 class LayerTreeHost; 24 class LayerTreeHost;
25 class LayerTreeHostSingleThreadClient; 25 class LayerTreeHostSingleThreadClient;
26 class ResourceUpdateQueue;
26 27
27 class CC_EXPORT SingleThreadProxy : public Proxy, 28 class CC_EXPORT SingleThreadProxy : public Proxy,
28 NON_EXPORTED_BASE(LayerTreeHostImplClient), 29 NON_EXPORTED_BASE(LayerTreeHostImplClient),
29 SchedulerClient { 30 SchedulerClient {
30 public: 31 public:
31 static scoped_ptr<Proxy> Create( 32 static scoped_ptr<Proxy> Create(
32 LayerTreeHost* layer_tree_host, 33 LayerTreeHost* layer_tree_host,
33 LayerTreeHostSingleThreadClient* client, 34 LayerTreeHostSingleThreadClient* client,
34 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 35 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
35 scoped_ptr<BeginFrameSource> external_begin_frame_source); 36 scoped_ptr<BeginFrameSource> external_begin_frame_source);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 base::TimeDelta CommitToActivateDurationEstimate() override; 79 base::TimeDelta CommitToActivateDurationEstimate() override;
79 void DidBeginImplFrameDeadline() override; 80 void DidBeginImplFrameDeadline() override;
80 void SendBeginFramesToChildren(const BeginFrameArgs& args) override; 81 void SendBeginFramesToChildren(const BeginFrameArgs& args) override;
81 void SendBeginMainFrameNotExpectedSoon() override; 82 void SendBeginMainFrameNotExpectedSoon() override;
82 83
83 // LayerTreeHostImplClient implementation 84 // LayerTreeHostImplClient implementation
84 void UpdateRendererCapabilitiesOnImplThread() override; 85 void UpdateRendererCapabilitiesOnImplThread() override;
85 void DidLoseOutputSurfaceOnImplThread() override; 86 void DidLoseOutputSurfaceOnImplThread() override;
86 void CommitVSyncParameters(base::TimeTicks timebase, 87 void CommitVSyncParameters(base::TimeTicks timebase,
87 base::TimeDelta interval) override; 88 base::TimeDelta interval) override;
88 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} 89 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override;
89 void SetMaxSwapsPendingOnImplThread(int max) override {} 90 void SetMaxSwapsPendingOnImplThread(int max) override {}
90 void DidSwapBuffersOnImplThread() override; 91 void DidSwapBuffersOnImplThread() override;
91 void DidSwapBuffersCompleteOnImplThread() override; 92 void DidSwapBuffersCompleteOnImplThread() override;
92 void OnCanDrawStateChanged(bool can_draw) override; 93 void OnCanDrawStateChanged(bool can_draw) override;
93 void NotifyReadyToActivate() override; 94 void NotifyReadyToActivate() override;
94 void NotifyReadyToDraw() override; 95 void NotifyReadyToDraw() override;
95 void SetNeedsRedrawOnImplThread() override; 96 void SetNeedsRedrawOnImplThread() override;
96 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; 97 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override;
97 void SetNeedsAnimateOnImplThread() override; 98 void SetNeedsAnimateOnImplThread() override;
98 void SetNeedsPrepareTilesOnImplThread() override; 99 void SetNeedsPrepareTilesOnImplThread() override;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 private: 231 private:
231 DebugScopedSetImplThread impl_thread_; 232 DebugScopedSetImplThread impl_thread_;
232 DebugScopedSetMainThreadBlocked main_thread_blocked_; 233 DebugScopedSetMainThreadBlocked main_thread_blocked_;
233 234
234 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 235 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
235 }; 236 };
236 237
237 } // namespace cc 238 } // namespace cc
238 239
239 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 240 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/scoped_abort_remaining_swap_promises.h ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698