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

Side by Side Diff: content/renderer/gpu/render_widget_compositor_delegate.h

Issue 2626023007: Passing FrameSinkId to WindowCompositorFrameSink (Closed)
Patch Set: c Created 3 years, 11 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 12
13 namespace cc { 13 namespace cc {
14 class CopyOutputRequest; 14 class CopyOutputRequest;
15 class CompositorFrameSink; 15 class CompositorFrameSink;
16 class FrameSinkId;
16 class SwapPromise; 17 class SwapPromise;
17 } 18 }
18 19
19 namespace gfx { 20 namespace gfx {
20 class Vector2dF; 21 class Vector2dF;
21 } 22 }
22 23
23 namespace content { 24 namespace content {
24 25
25 // Consumers of RenderWidgetCompositor implement this delegate in order to 26 // Consumers of RenderWidgetCompositor implement this delegate in order to
26 // transport compositing information across processes. 27 // transport compositing information across processes.
27 class CONTENT_EXPORT RenderWidgetCompositorDelegate { 28 class CONTENT_EXPORT RenderWidgetCompositorDelegate {
28 public: 29 public:
29 // Report viewport related properties during a commit from the compositor 30 // Report viewport related properties during a commit from the compositor
30 // thread. 31 // thread.
31 virtual void ApplyViewportDeltas( 32 virtual void ApplyViewportDeltas(
32 const gfx::Vector2dF& inner_delta, 33 const gfx::Vector2dF& inner_delta,
33 const gfx::Vector2dF& outer_delta, 34 const gfx::Vector2dF& outer_delta,
34 const gfx::Vector2dF& elastic_overscroll_delta, 35 const gfx::Vector2dF& elastic_overscroll_delta,
35 float page_scale, 36 float page_scale,
36 float top_controls_delta) = 0; 37 float top_controls_delta) = 0;
37 38
38 // Notifies that the compositor has issed a BeginMainFrame. 39 // Notifies that the compositor has issed a BeginMainFrame.
39 virtual void BeginMainFrame(double frame_time_sec) = 0; 40 virtual void BeginMainFrame(double frame_time_sec) = 0;
40 41
41 // Requests a CompositorFrameSink to submit to. 42 // Requests a CompositorFrameSink to submit to.
42 virtual std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink( 43 virtual std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink(
44 const cc::FrameSinkId& frame_sink_id,
43 bool fallback) = 0; 45 bool fallback) = 0;
44 46
45 // Notifies that the draw commands for a committed frame have been issued. 47 // Notifies that the draw commands for a committed frame have been issued.
46 virtual void DidCommitAndDrawCompositorFrame() = 0; 48 virtual void DidCommitAndDrawCompositorFrame() = 0;
47 49
48 // Notifies about a compositor frame commit operation having finished. 50 // Notifies about a compositor frame commit operation having finished.
49 virtual void DidCommitCompositorFrame() = 0; 51 virtual void DidCommitCompositorFrame() = 0;
50 52
51 // Called by the compositor when page scale animation completed. 53 // Called by the compositor when page scale animation completed.
52 virtual void DidCompletePageScaleAnimation() = 0; 54 virtual void DidCompletePageScaleAnimation() = 0;
(...skipping 27 matching lines...) Expand all
80 virtual std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest( 82 virtual std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest(
81 std::unique_ptr<cc::CopyOutputRequest> request) = 0; 83 std::unique_ptr<cc::CopyOutputRequest> request) = 0;
82 84
83 protected: 85 protected:
84 virtual ~RenderWidgetCompositorDelegate() {} 86 virtual ~RenderWidgetCompositorDelegate() {}
85 }; 87 };
86 88
87 } // namespace content 89 } // namespace content
88 90
89 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ 91 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | content/renderer/gpu/render_widget_compositor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698