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

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

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make CompositorFrameMetadata movable Created 4 years, 6 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void CopyFromCompositingSurfaceToVideoFrame( 117 void CopyFromCompositingSurfaceToVideoFrame(
118 const gfx::Rect& src_subrect, 118 const gfx::Rect& src_subrect,
119 const scoped_refptr<media::VideoFrame>& target, 119 const scoped_refptr<media::VideoFrame>& target,
120 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; 120 const base::Callback<void(const gfx::Rect&, bool)>& callback) override;
121 bool CanCopyToVideoFrame() const override; 121 bool CanCopyToVideoFrame() const override;
122 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; 122 bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
123 void WheelEventAck(const blink::WebMouseWheelEvent& event, 123 void WheelEventAck(const blink::WebMouseWheelEvent& event,
124 InputEventAckState ack_result) override; 124 InputEventAckState ack_result) override;
125 void GestureEventAck(const blink::WebGestureEvent& event, 125 void GestureEventAck(const blink::WebGestureEvent& event,
126 InputEventAckState ack_result) override; 126 InputEventAckState ack_result) override;
127 void OnSwapCompositorFrame( 127 void OnSwapCompositorFrame(uint32_t output_surface_id,
128 uint32_t output_surface_id, 128 cc::CompositorFrame frame) override;
129 std::unique_ptr<cc::CompositorFrame> frame) override;
130 // Since the URL of content rendered by this class is not displayed in 129 // Since the URL of content rendered by this class is not displayed in
131 // the URL bar, this method does not need an implementation. 130 // the URL bar, this method does not need an implementation.
132 void ClearCompositorFrame() override {} 131 void ClearCompositorFrame() override {}
133 void GetScreenInfo(blink::WebScreenInfo* results) override; 132 void GetScreenInfo(blink::WebScreenInfo* results) override;
134 bool GetScreenColorProfile(std::vector<char>* color_profile) override; 133 bool GetScreenColorProfile(std::vector<char>* color_profile) override;
135 gfx::Rect GetBoundsInRootWindow() override; 134 gfx::Rect GetBoundsInRootWindow() override;
136 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, 135 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch,
137 InputEventAckState ack_result) override; 136 InputEventAckState ack_result) override;
138 bool LockMouse() override; 137 bool LockMouse() override;
139 void UnlockMouse() override; 138 void UnlockMouse() override;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // The surface id namespace of the parent RenderWidgetHostView. 0 if none. 246 // The surface id namespace of the parent RenderWidgetHostView. 0 if none.
248 uint32_t parent_surface_id_namespace_; 247 uint32_t parent_surface_id_namespace_;
249 248
250 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; 249 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_;
251 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); 250 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame);
252 }; 251 };
253 252
254 } // namespace content 253 } // namespace content
255 254
256 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 255 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698