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

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

Issue 1419283002: cc: Split Proxy and TaskRunnerProvider for the LayerTreeHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 1 month 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/occlusion_tracker_perftest.cc ('k') | cc/trees/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_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> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 10 matching lines...) Expand all
21 namespace gfx { 21 namespace gfx {
22 class Rect; 22 class Rect;
23 class Vector2d; 23 class Vector2d;
24 } 24 }
25 25
26 namespace cc { 26 namespace cc {
27 class LayerTreeDebugState; 27 class LayerTreeDebugState;
28 class OutputSurface; 28 class OutputSurface;
29 struct RendererCapabilities; 29 struct RendererCapabilities;
30 30
31 // Abstract class responsible for proxying commands from the main-thread side of 31 // Abstract interface responsible for proxying commands from the main-thread
32 // the compositor over to the compositor implementation. 32 // side of the compositor over to the compositor implementation.
33 class CC_EXPORT Proxy : public TaskRunnerProvider { 33 class CC_EXPORT Proxy {
34 public: 34 public:
35 ~Proxy() override; 35 virtual ~Proxy() {}
36 36
37 virtual void FinishAllRendering() = 0; 37 virtual void FinishAllRendering() = 0;
38 38
39 virtual bool IsStarted() const = 0; 39 virtual bool IsStarted() const = 0;
40 virtual bool CommitToActiveTree() const = 0; 40 virtual bool CommitToActiveTree() const = 0;
41 41
42 // Will call LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted 42 // Will call LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted
43 // with the result of this function. 43 // with the result of this function.
44 virtual void SetOutputSurface(OutputSurface* output_surface) = 0; 44 virtual void SetOutputSurface(OutputSurface* output_surface) = 0;
45 45
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 virtual void SetAuthoritativeVSyncInterval( 79 virtual void SetAuthoritativeVSyncInterval(
80 const base::TimeDelta& interval) = 0; 80 const base::TimeDelta& interval) = 0;
81 81
82 virtual void UpdateTopControlsState(TopControlsState constraints, 82 virtual void UpdateTopControlsState(TopControlsState constraints,
83 TopControlsState current, 83 TopControlsState current,
84 bool animate) = 0; 84 bool animate) = 0;
85 85
86 // Testing hooks 86 // Testing hooks
87 virtual bool MainFrameWillHappenForTesting() = 0; 87 virtual bool MainFrameWillHappenForTesting() = 0;
88
89 protected:
90 Proxy(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
91 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
92
93 private:
94 DISALLOW_COPY_AND_ASSIGN(Proxy);
95 }; 88 };
96 89
97 } // namespace cc 90 } // namespace cc
98 91
99 #endif // CC_TREES_PROXY_H_ 92 #endif // CC_TREES_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/occlusion_tracker_perftest.cc ('k') | cc/trees/proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698