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

Side by Side Diff: cc/layer_tree_host_client.h

Issue 11413123: cc: switch to new WebLayerTreeViewClient API for requesting font atlas (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed WebKit tests for patch #1 Created 8 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
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 { 14 namespace WebKit {
15 class WebCompositorOutputSurface; 15 class WebCompositorOutputSurface;
16 } 16 }
17 17
18 namespace cc { 18 namespace cc {
19 class FontAtlas;
19 class InputHandler; 20 class InputHandler;
20 21
21 class LayerTreeHostClient { 22 class LayerTreeHostClient {
22 public: 23 public:
23 virtual void willBeginFrame() = 0; 24 virtual void willBeginFrame() = 0;
24 // Marks finishing compositing-related tasks on the main thread. In threaded mode, this corresponds to didCommit(). 25 // Marks finishing compositing-related tasks on the main thread. In threaded mode, this corresponds to didCommit().
25 virtual void didBeginFrame() = 0; 26 virtual void didBeginFrame() = 0;
26 virtual void animate(double frameBeginTime) = 0; 27 virtual void animate(double frameBeginTime) = 0;
27 virtual void layout() = 0; 28 virtual void layout() = 0;
28 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, float pageScale) = 0; 29 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, float pageScale) = 0;
29 virtual scoped_ptr<WebKit::WebCompositorOutputSurface> createOutputSurface() = 0; 30 virtual scoped_ptr<WebKit::WebCompositorOutputSurface> createOutputSurface() = 0;
30 virtual void didRecreateOutputSurface(bool success) = 0; 31 virtual void didRecreateOutputSurface(bool success) = 0;
31 virtual scoped_ptr<InputHandler> createInputHandler() = 0; 32 virtual scoped_ptr<InputHandler> createInputHandler() = 0;
32 virtual void willCommit() = 0; 33 virtual void willCommit() = 0;
33 virtual void didCommit() = 0; 34 virtual void didCommit() = 0;
34 virtual void didCommitAndDrawFrame() = 0; 35 virtual void didCommitAndDrawFrame() = 0;
35 virtual void didCompleteSwapBuffers() = 0; 36 virtual void didCompleteSwapBuffers() = 0;
36 37
37 // Used only in the single-threaded path. 38 // Used only in the single-threaded path.
38 virtual void scheduleComposite() = 0; 39 virtual void scheduleComposite() = 0;
39 40
41 virtual scoped_ptr<cc::FontAtlas> createFontAtlas() = 0;
piman 2012/11/27 21:54:02 drive-by: you'll need to fix ui::Compositor in ui/
42
40 protected: 43 protected:
41 virtual ~LayerTreeHostClient() { } 44 virtual ~LayerTreeHostClient() { }
42 }; 45 };
43 46
44 } 47 }
45 48
46 #endif // CC_LAYER_TREE_HOST_CLIENT_H_ 49 #endif // CC_LAYER_TREE_HOST_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698