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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.h

Issue 2774373002: Use MojoCompositorFrameSink in RendererCompositorFrameSink (Closed)
Patch Set: Fixed mac Created 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; 100 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override;
101 void UpdateCursor(const WebCursor& cursor) override; 101 void UpdateCursor(const WebCursor& cursor) override;
102 void SetIsLoading(bool is_loading) override; 102 void SetIsLoading(bool is_loading) override;
103 void RenderProcessGone(base::TerminationStatus status, 103 void RenderProcessGone(base::TerminationStatus status,
104 int error_code) override; 104 int error_code) override;
105 void Destroy() override; 105 void Destroy() override;
106 void SetTooltipText(const base::string16& tooltip_text) override; 106 void SetTooltipText(const base::string16& tooltip_text) override;
107 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; 107 bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
108 void GestureEventAck(const blink::WebGestureEvent& event, 108 void GestureEventAck(const blink::WebGestureEvent& event,
109 InputEventAckState ack_result) override; 109 InputEventAckState ack_result) override;
110 void DidCreateNewRendererCompositorFrameSink() override; 110 void DidCreateNewRendererCompositorFrameSink(
111 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink)
112 override;
111 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, 113 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
112 cc::CompositorFrame frame) override; 114 cc::CompositorFrame frame) override;
113 void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack) override; 115 void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack) override;
114 // Since the URL of content rendered by this class is not displayed in 116 // Since the URL of content rendered by this class is not displayed in
115 // the URL bar, this method does not need an implementation. 117 // the URL bar, this method does not need an implementation.
116 void ClearCompositorFrame() override {} 118 void ClearCompositorFrame() override {}
117 gfx::Rect GetBoundsInRootWindow() override; 119 gfx::Rect GetBoundsInRootWindow() override;
118 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, 120 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch,
119 InputEventAckState ack_result) override; 121 InputEventAckState ack_result) override;
120 bool LockMouse() override; 122 bool LockMouse() override;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 250
249 using FrameSwappedCallbackList = std::deque<std::unique_ptr<base::Closure>>; 251 using FrameSwappedCallbackList = std::deque<std::unique_ptr<base::Closure>>;
250 // Since frame-drawn callbacks are "fire once", we use std::deque to make 252 // Since frame-drawn callbacks are "fire once", we use std::deque to make
251 // it convenient to swap() when processing the list. 253 // it convenient to swap() when processing the list.
252 FrameSwappedCallbackList frame_swapped_callbacks_; 254 FrameSwappedCallbackList frame_swapped_callbacks_;
253 255
254 // The surface client ID of the parent RenderWidgetHostView. 0 if none. 256 // The surface client ID of the parent RenderWidgetHostView. 0 if none.
255 cc::FrameSinkId parent_frame_sink_id_; 257 cc::FrameSinkId parent_frame_sink_id_;
256 258
257 bool has_frame_ = false; 259 bool has_frame_ = false;
260 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ =
261 nullptr;
258 262
259 // The background color of the widget. 263 // The background color of the widget.
260 SkColor background_color_; 264 SkColor background_color_;
261 265
262 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; 266 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_;
263 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); 267 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame);
264 }; 268 };
265 269
266 } // namespace content 270 } // namespace content
267 271
268 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 272 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698