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/trees/layer_tree_host_client.h

Issue 54493003: Propagate source_frame_number from LTH to DevTools (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed content/test/web_layer_tree_view_impl_for_testing.h Created 7 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 | Annotate | Revision Log
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
11 namespace gfx { 11 namespace gfx {
12 class Vector2d; 12 class Vector2d;
13 } 13 }
14 14
15 namespace cc { 15 namespace cc {
16 class ContextProvider; 16 class ContextProvider;
17 class InputHandlerClient; 17 class InputHandlerClient;
18 class OutputSurface; 18 class OutputSurface;
19 19
20 class LayerTreeHostClient { 20 class LayerTreeHostClient {
21 public: 21 public:
22 virtual void WillBeginMainFrame() = 0; 22 virtual void WillBeginMainFrame(int frame_id) = 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 DidBeginMainFrame() = 0; 25 virtual void DidBeginMainFrame() = 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 // Creates an OutputSurface. If fallback is true, it should attempt to 30 // Creates an OutputSurface. If fallback is true, it should attempt to
31 // create an OutputSurface that is guaranteed to initialize correctly. 31 // create an OutputSurface that is guaranteed to initialize correctly.
32 virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback) = 0; 32 virtual scoped_ptr<OutputSurface> CreateOutputSurface(bool fallback) = 0;
(...skipping 20 matching lines...) Expand all
53 // This hook is for testing. 53 // This hook is for testing.
54 virtual void DidFailToInitializeOutputSurface() {} 54 virtual void DidFailToInitializeOutputSurface() {}
55 55
56 protected: 56 protected:
57 virtual ~LayerTreeHostClient() {} 57 virtual ~LayerTreeHostClient() {}
58 }; 58 };
59 59
60 } // namespace cc 60 } // namespace cc
61 61
62 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_ 62 #endif // CC_TREES_LAYER_TREE_HOST_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698