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

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

Issue 903273002: Update from https://crrev.com/315085 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_common.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_LAYER_TREE_HOST_CLIENT_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_CLIENT_H_
6 #define CC_TREES_LAYER_TREE_HOST_CLIENT_H_ 6 #define CC_TREES_LAYER_TREE_HOST_CLIENT_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 11
12 namespace gfx { 12 namespace gfx {
13 class Vector2d; 13 class Vector2d;
14 class Vector2dF; 14 class Vector2dF;
15 } 15 }
16 16
17 namespace cc { 17 namespace cc {
18 class ContextProvider; 18 class ContextProvider;
19 class InputHandlerClient; 19 class InputHandlerClient;
20 class OutputSurface; 20 class OutputSurface;
21 struct BeginFrameArgs; 21 struct BeginFrameArgs;
22 22
23 class LayerTreeHostClient { 23 class LayerTreeHostClient {
24 public: 24 public:
25 virtual void WillBeginMainFrame(int frame_id) = 0; 25 virtual void WillBeginMainFrame() = 0;
26 // Marks finishing compositing-related tasks on the main thread. In threaded 26 // Marks finishing compositing-related tasks on the main thread. In threaded
27 // mode, this corresponds to DidCommit(). 27 // mode, this corresponds to DidCommit().
28 virtual void BeginMainFrame(const BeginFrameArgs& args) = 0; 28 virtual void BeginMainFrame(const BeginFrameArgs& args) = 0;
29 virtual void DidBeginMainFrame() = 0; 29 virtual void DidBeginMainFrame() = 0;
30 virtual void Layout() = 0; 30 virtual void Layout() = 0;
31 virtual void ApplyViewportDeltas( 31 virtual void ApplyViewportDeltas(
32 const gfx::Vector2d& inner_delta, 32 const gfx::Vector2dF& inner_delta,
33 const gfx::Vector2d& outer_delta, 33 const gfx::Vector2dF& outer_delta,
34 const gfx::Vector2dF& elastic_overscroll_delta, 34 const gfx::Vector2dF& elastic_overscroll_delta,
35 float page_scale, 35 float page_scale,
36 float top_controls_delta) = 0; 36 float top_controls_delta) = 0;
37 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, 37 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
38 float page_scale, 38 float page_scale,
39 float top_controls_delta) = 0; 39 float top_controls_delta) = 0;
40 // Request an OutputSurface from the client. When the client has one it should 40 // Request an OutputSurface from the client. When the client has one it should
41 // call LayerTreeHost::SetOutputSurface. This will result in either 41 // call LayerTreeHost::SetOutputSurface. This will result in either
42 // DidFailToInitializeOutputSurface or DidInitializeOutputSurface being 42 // DidFailToInitializeOutputSurface or DidInitializeOutputSurface being
43 // called. 43 // called.
(...skipping 18 matching lines...) Expand all
62 // a TextureLayer that calls SetRateLimitContext(true). 62 // a TextureLayer that calls SetRateLimitContext(true).
63 virtual void RateLimitSharedMainThreadContext() {} 63 virtual void RateLimitSharedMainThreadContext() {}
64 64
65 protected: 65 protected:
66 virtual ~LayerTreeHostClient() {} 66 virtual ~LayerTreeHostClient() {}
67 }; 67 };
68 68
69 } // namespace cc 69 } // namespace cc
70 70
71 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_ 71 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698