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

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

Issue 13844021: Move compositor thread input handling logic into content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 7 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/trees/layer_tree_host.cc ('k') | cc/trees/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_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 10
(...skipping 11 matching lines...) Expand all
22 virtual void WillBeginFrame() = 0; 22 virtual void WillBeginFrame() = 0;
23 // Marks finishing compositing-related tasks on the main thread. In threaded 23 // Marks finishing compositing-related tasks on the main thread. In threaded
24 // mode, this corresponds to DidCommit(). 24 // mode, this corresponds to DidCommit().
25 virtual void DidBeginFrame() = 0; 25 virtual void DidBeginFrame() = 0;
26 virtual void Animate(double frame_begin_time) = 0; 26 virtual void Animate(double frame_begin_time) = 0;
27 virtual void Layout() = 0; 27 virtual void Layout() = 0;
28 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, 28 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta,
29 float page_scale) = 0; 29 float page_scale) = 0;
30 virtual scoped_ptr<OutputSurface> CreateOutputSurface() = 0; 30 virtual scoped_ptr<OutputSurface> CreateOutputSurface() = 0;
31 virtual void DidInitializeOutputSurface(bool success) = 0; 31 virtual void DidInitializeOutputSurface(bool success) = 0;
32 virtual scoped_ptr<InputHandlerClient> CreateInputHandlerClient() = 0;
33 virtual void WillCommit() = 0; 32 virtual void WillCommit() = 0;
34 virtual void DidCommit() = 0; 33 virtual void DidCommit() = 0;
35 virtual void DidCommitAndDrawFrame() = 0; 34 virtual void DidCommitAndDrawFrame() = 0;
36 virtual void DidCompleteSwapBuffers() = 0; 35 virtual void DidCompleteSwapBuffers() = 0;
37 36
38 // Used only in the single-threaded path. 37 // Used only in the single-threaded path.
39 virtual void ScheduleComposite() = 0; 38 virtual void ScheduleComposite() = 0;
40 39
41 // These must always return a valid ContextProvider. But the provider does not 40 // These must always return a valid ContextProvider. But the provider does not
42 // need to be capable of creating contexts. 41 // need to be capable of creating contexts.
43 virtual scoped_refptr<cc::ContextProvider> 42 virtual scoped_refptr<cc::ContextProvider>
44 OffscreenContextProviderForMainThread() = 0; 43 OffscreenContextProviderForMainThread() = 0;
45 virtual scoped_refptr<cc::ContextProvider> 44 virtual scoped_refptr<cc::ContextProvider>
46 OffscreenContextProviderForCompositorThread() = 0; 45 OffscreenContextProviderForCompositorThread() = 0;
47 46
48 // This hook is for testing. 47 // This hook is for testing.
49 virtual void DidFailToInitializeOutputSurface() {} 48 virtual void DidFailToInitializeOutputSurface() {}
50 49
51 protected: 50 protected:
52 virtual ~LayerTreeHostClient() {} 51 virtual ~LayerTreeHostClient() {}
53 }; 52 };
54 53
55 } // namespace cc 54 } // namespace cc
56 55
57 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_ 56 #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_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698