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

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

Issue 2629243002: content: Remove blimp compositing dependencies. (Closed)
Patch Set: .. 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
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Notifies about a compositor frame commit operation having finished. 50 // Notifies about a compositor frame commit operation having finished.
51 virtual void DidCommitCompositorFrame() = 0; 51 virtual void DidCommitCompositorFrame() = 0;
52 52
53 // Called by the compositor when page scale animation completed. 53 // Called by the compositor when page scale animation completed.
54 virtual void DidCompletePageScaleAnimation() = 0; 54 virtual void DidCompletePageScaleAnimation() = 0;
55 55
56 // Notifies that the last submitted CompositorFrame has been processed and 56 // Notifies that the last submitted CompositorFrame has been processed and
57 // will be displayed. 57 // will be displayed.
58 virtual void DidReceiveCompositorFrameAck() = 0; 58 virtual void DidReceiveCompositorFrameAck() = 0;
59 59
60 // Called by the compositor to forward a proto that represents serialized
61 // compositor state.
62 virtual void ForwardCompositorProto(const std::vector<uint8_t>& proto) = 0;
63
64 // Indicates whether the RenderWidgetCompositor is about to close. 60 // Indicates whether the RenderWidgetCompositor is about to close.
65 virtual bool IsClosing() const = 0; 61 virtual bool IsClosing() const = 0;
66 62
67 // Requests that the client schedule a composite now, and calculate 63 // Requests that the client schedule a composite now, and calculate
68 // appropriate delay for potential future frame. 64 // appropriate delay for potential future frame.
69 virtual void RequestScheduleAnimation() = 0; 65 virtual void RequestScheduleAnimation() = 0;
70 66
71 // Requests a visual frame-based update to the state of the delegate if there 67 // Requests a visual frame-based update to the state of the delegate if there
72 // an update available. 68 // an update available.
73 virtual void UpdateVisualState() = 0; 69 virtual void UpdateVisualState() = 0;
74 70
75 // Indicates that the compositor is about to begin a frame. This is primarily 71 // Indicates that the compositor is about to begin a frame. This is primarily
76 // to signal to flow control mechanisms that a frame is beginning, not to 72 // to signal to flow control mechanisms that a frame is beginning, not to
77 // perform actual painting work. 73 // perform actual painting work.
78 virtual void WillBeginCompositorFrame() = 0; 74 virtual void WillBeginCompositorFrame() = 0;
79 75
80 // For use in layout test mode only, attempts to copy the full content of the 76 // For use in layout test mode only, attempts to copy the full content of the
81 // compositor. 77 // compositor.
82 virtual std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest( 78 virtual std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest(
83 std::unique_ptr<cc::CopyOutputRequest> request) = 0; 79 std::unique_ptr<cc::CopyOutputRequest> request) = 0;
84 80
85 protected: 81 protected:
86 virtual ~RenderWidgetCompositorDelegate() {} 82 virtual ~RenderWidgetCompositorDelegate() {}
87 }; 83 };
88 84
89 } // namespace content 85 } // namespace content
90 86
91 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ 87 #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