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

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

Issue 1873783003: Convert //content/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 "cc/debug/frame_timing_tracker.h" 8 #include "cc/debug/frame_timing_tracker.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 18 matching lines...) Expand all
29 const gfx::Vector2dF& inner_delta, 29 const gfx::Vector2dF& inner_delta,
30 const gfx::Vector2dF& outer_delta, 30 const gfx::Vector2dF& outer_delta,
31 const gfx::Vector2dF& elastic_overscroll_delta, 31 const gfx::Vector2dF& elastic_overscroll_delta,
32 float page_scale, 32 float page_scale,
33 float top_controls_delta) = 0; 33 float top_controls_delta) = 0;
34 34
35 // Notifies that the compositor has issed a BeginMainFrame. 35 // Notifies that the compositor has issed a BeginMainFrame.
36 virtual void BeginMainFrame(double frame_time_sec) = 0; 36 virtual void BeginMainFrame(double frame_time_sec) = 0;
37 37
38 // Requests an OutputSurface to render into. 38 // Requests an OutputSurface to render into.
39 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) = 0; 39 virtual std::unique_ptr<cc::OutputSurface> CreateOutputSurface(
40 bool fallback) = 0;
40 41
41 // Requests an external BeginFrameSource from the delegate. 42 // Requests an external BeginFrameSource from the delegate.
42 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource() = 0; 43 virtual std::unique_ptr<cc::BeginFrameSource>
44 CreateExternalBeginFrameSource() = 0;
43 45
44 // Notifies that the draw commands for a committed frame have been issued. 46 // Notifies that the draw commands for a committed frame have been issued.
45 virtual void DidCommitAndDrawCompositorFrame() = 0; 47 virtual void DidCommitAndDrawCompositorFrame() = 0;
46 48
47 // Notifies about a compositor frame commit operation having finished. 49 // Notifies about a compositor frame commit operation having finished.
48 virtual void DidCommitCompositorFrame() = 0; 50 virtual void DidCommitCompositorFrame() = 0;
49 51
50 // Called by the compositor when page scale animation completed. 52 // Called by the compositor when page scale animation completed.
51 virtual void DidCompletePageScaleAnimation() = 0; 53 virtual void DidCompletePageScaleAnimation() = 0;
52 54
(...skipping 17 matching lines...) Expand all
70 virtual void OnSwapBuffersAborted() = 0; 72 virtual void OnSwapBuffersAborted() = 0;
71 73
72 // Called by the compositor in single-threaded mode when a swap completes. 74 // Called by the compositor in single-threaded mode when a swap completes.
73 virtual void OnSwapBuffersComplete() = 0; 75 virtual void OnSwapBuffersComplete() = 0;
74 76
75 // Called by the compositor in single-threaded mode when a swap is posted. 77 // Called by the compositor in single-threaded mode when a swap is posted.
76 virtual void OnSwapBuffersPosted() = 0; 78 virtual void OnSwapBuffersPosted() = 0;
77 79
78 // Called by the compositor to request the delegate to record frame timing. 80 // Called by the compositor to request the delegate to record frame timing.
79 virtual void RecordFrameTimingEvents( 81 virtual void RecordFrameTimingEvents(
80 scoped_ptr<cc::FrameTimingTracker::CompositeTimingSet> composite_events, 82 std::unique_ptr<cc::FrameTimingTracker::CompositeTimingSet>
81 scoped_ptr<cc::FrameTimingTracker::MainFrameTimingSet> 83 composite_events,
84 std::unique_ptr<cc::FrameTimingTracker::MainFrameTimingSet>
82 main_frame_events) = 0; 85 main_frame_events) = 0;
83 86
84 // Requests that the client schedule a composite now, and calculate 87 // Requests that the client schedule a composite now, and calculate
85 // appropriate delay for potential future frame. 88 // appropriate delay for potential future frame.
86 virtual void RequestScheduleAnimation() = 0; 89 virtual void RequestScheduleAnimation() = 0;
87 90
88 // Requests a visual frame-based update to the state of the delegate if there 91 // Requests a visual frame-based update to the state of the delegate if there
89 // an update available. 92 // an update available.
90 virtual void UpdateVisualState() = 0; 93 virtual void UpdateVisualState() = 0;
91 94
92 // Indicates that the compositor is about to begin a frame. This is primarily 95 // Indicates that the compositor is about to begin a frame. This is primarily
93 // to signal to flow control mechanisms that a frame is beginning, not to 96 // to signal to flow control mechanisms that a frame is beginning, not to
94 // perform actual painting work. 97 // perform actual painting work.
95 virtual void WillBeginCompositorFrame() = 0; 98 virtual void WillBeginCompositorFrame() = 0;
96 99
97 protected: 100 protected:
98 virtual ~RenderWidgetCompositorDelegate() {} 101 virtual ~RenderWidgetCompositorDelegate() {}
99 }; 102 };
100 103
101 } // namespace content 104 } // namespace content
102 105
103 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_DELEGATE_H_ 106 #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