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

Side by Side Diff: cc/layer_tree_host_client.h

Issue 11122003: [cc] Rename all cc/ filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/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
5 #ifndef CCLayerTreeHostClient_h
6 #define CCLayerTreeHostClient_h
7
8 #include "base/memory/scoped_ptr.h"
9
10 namespace WebKit {
11 class WebCompositorOutputSurface;
12 }
13
14 namespace cc {
15 class CCInputHandler;
16 class IntSize;
17
18 class CCLayerTreeHostClient {
19 public:
20 virtual void willBeginFrame() = 0;
21 // Marks finishing compositing-related tasks on the main thread. In threaded mode, this corresponds to didCommit().
22 virtual void didBeginFrame() = 0;
23 virtual void animate(double frameBeginTime) = 0;
24 virtual void layout() = 0;
25 virtual void applyScrollAndScale(const IntSize& scrollDelta, float pageScale ) = 0;
26 virtual scoped_ptr<WebKit::WebCompositorOutputSurface> createOutputSurface() = 0;
27 virtual void didRecreateOutputSurface(bool success) = 0;
28 virtual scoped_ptr<CCInputHandler> createInputHandler() = 0;
29 virtual void willCommit() = 0;
30 virtual void didCommit() = 0;
31 virtual void didCommitAndDrawFrame() = 0;
32 virtual void didCompleteSwapBuffers() = 0;
33
34 // Used only in the single-threaded path.
35 virtual void scheduleComposite() = 0;
36
37 protected:
38 virtual ~CCLayerTreeHostClient() { }
39 };
40
41 }
42
43 #endif // CCLayerTreeHostClient_h
OLDNEW
« no previous file with comments | « cc/layer_tree_host.cc ('k') | cc/layer_tree_host_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698