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

Side by Side Diff: cc/layer_tree_host_client.h

Issue 11348371: cc: Move WebCompositorOutputSurface and related classes into cc/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forlanding6 Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « cc/layer_animation_controller_unittest.cc ('k') | cc/layer_tree_host_impl.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_LAYER_TREE_HOST_CLIENT_H_ 5 #ifndef CC_LAYER_TREE_HOST_CLIENT_H_
6 #define CC_LAYER_TREE_HOST_CLIENT_H_ 6 #define CC_LAYER_TREE_HOST_CLIENT_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 9
10 namespace gfx { 10 namespace gfx {
11 class Vector2d; 11 class Vector2d;
12 } 12 }
13 13
14 namespace WebKit {
15 class WebCompositorOutputSurface;
16 }
17
18 namespace cc { 14 namespace cc {
19 class FontAtlas; 15 class FontAtlas;
20 class InputHandler; 16 class InputHandler;
17 class OutputSurface;
21 18
22 class LayerTreeHostClient { 19 class LayerTreeHostClient {
23 public: 20 public:
24 virtual void willBeginFrame() = 0; 21 virtual void willBeginFrame() = 0;
25 // Marks finishing compositing-related tasks on the main thread. In threaded mode, this corresponds to didCommit(). 22 // Marks finishing compositing-related tasks on the main thread. In threaded mode, this corresponds to didCommit().
26 virtual void didBeginFrame() = 0; 23 virtual void didBeginFrame() = 0;
27 virtual void animate(double frameBeginTime) = 0; 24 virtual void animate(double frameBeginTime) = 0;
28 virtual void layout() = 0; 25 virtual void layout() = 0;
29 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, float pageScale) = 0; 26 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, float pageScale) = 0;
30 virtual scoped_ptr<WebKit::WebCompositorOutputSurface> createOutputSurface() = 0; 27 virtual scoped_ptr<OutputSurface> createOutputSurface() = 0;
31 virtual void didRecreateOutputSurface(bool success) = 0; 28 virtual void didRecreateOutputSurface(bool success) = 0;
32 virtual scoped_ptr<InputHandler> createInputHandler() = 0; 29 virtual scoped_ptr<InputHandler> createInputHandler() = 0;
33 virtual void willCommit() = 0; 30 virtual void willCommit() = 0;
34 virtual void didCommit() = 0; 31 virtual void didCommit() = 0;
35 virtual void didCommitAndDrawFrame() = 0; 32 virtual void didCommitAndDrawFrame() = 0;
36 virtual void didCompleteSwapBuffers() = 0; 33 virtual void didCompleteSwapBuffers() = 0;
37 34
38 // Used only in the single-threaded path. 35 // Used only in the single-threaded path.
39 virtual void scheduleComposite() = 0; 36 virtual void scheduleComposite() = 0;
40 37
41 // Creates a font atlas to use for debug visualizations. 38 // Creates a font atlas to use for debug visualizations.
42 virtual scoped_ptr<FontAtlas> createFontAtlas() = 0; 39 virtual scoped_ptr<FontAtlas> createFontAtlas() = 0;
43 40
44 protected: 41 protected:
45 virtual ~LayerTreeHostClient() { } 42 virtual ~LayerTreeHostClient() { }
46 }; 43 };
47 44
48 } 45 }
49 46
50 #endif // CC_LAYER_TREE_HOST_CLIENT_H_ 47 #endif // CC_LAYER_TREE_HOST_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/layer_animation_controller_unittest.cc ('k') | cc/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698