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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 2728183002: RendererCompositorFrameSink should handle local surface id allocation (Closed)
Patch Set: rebase Created 3 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 InputEventAckState FilterInputEvent( 124 InputEventAckState FilterInputEvent(
125 const blink::WebInputEvent& input_event) override; 125 const blink::WebInputEvent& input_event) override;
126 void OnSetNeedsFlushInput() override; 126 void OnSetNeedsFlushInput() override;
127 void GestureEventAck(const blink::WebGestureEvent& event, 127 void GestureEventAck(const blink::WebGestureEvent& event,
128 InputEventAckState ack_result) override; 128 InputEventAckState ack_result) override;
129 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( 129 BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
130 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; 130 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override;
131 bool LockMouse() override; 131 bool LockMouse() override;
132 void UnlockMouse() override; 132 void UnlockMouse() override;
133 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, 133 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id,
134 const cc::LocalSurfaceId& local_surface_id,
134 cc::CompositorFrame frame) override; 135 cc::CompositorFrame frame) override;
135 void ClearCompositorFrame() override; 136 void ClearCompositorFrame() override;
136 void SetIsInVR(bool is_in_vr) override; 137 void SetIsInVR(bool is_in_vr) override;
137 bool IsInVR() const override; 138 bool IsInVR() const override;
138 void DidOverscroll(const ui::DidOverscrollParams& params) override; 139 void DidOverscroll(const ui::DidOverscrollParams& params) override;
139 void DidStopFlinging() override; 140 void DidStopFlinging() override;
140 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, 141 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels,
141 const SkBitmap& zoomed_bitmap) override; 142 const SkBitmap& zoomed_bitmap) override;
142 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() 143 std::unique_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget()
143 override; 144 override;
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 const gfx::Size& dst_size_in_pixel, 294 const gfx::Size& dst_size_in_pixel,
294 const ReadbackRequestCallback& callback, 295 const ReadbackRequestCallback& callback,
295 const SkColorType color_type); 296 const SkColorType color_type);
296 297
297 // Drop any incoming frames from the renderer when there are locks on the 298 // Drop any incoming frames from the renderer when there are locks on the
298 // current frame. 299 // current frame.
299 void RetainFrame(uint32_t compositor_frame_sink_id, 300 void RetainFrame(uint32_t compositor_frame_sink_id,
300 cc::CompositorFrame frame); 301 cc::CompositorFrame frame);
301 302
302 void InternalSwapCompositorFrame(uint32_t compositor_frame_sink_id, 303 void InternalSwapCompositorFrame(uint32_t compositor_frame_sink_id,
304 const cc::LocalSurfaceId& local_surface_id,
303 cc::CompositorFrame frame); 305 cc::CompositorFrame frame);
304 void DestroyDelegatedContent(); 306 void DestroyDelegatedContent();
305 void OnLostResources(); 307 void OnLostResources();
306 308
307 enum BeginFrameRequestType { 309 enum BeginFrameRequestType {
308 FLUSH_INPUT = 1 << 0, 310 FLUSH_INPUT = 1 << 0,
309 BEGIN_FRAME = 1 << 1, 311 BEGIN_FRAME = 1 << 1,
310 PERSISTENT_BEGIN_FRAME = 1 << 2 312 PERSISTENT_BEGIN_FRAME = 1 << 2
311 }; 313 };
312 void AddBeginFrameRequest(BeginFrameRequestType request); 314 void AddBeginFrameRequest(BeginFrameRequestType request);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 float prev_bottom_shown_pix_; 402 float prev_bottom_shown_pix_;
401 403
402 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 404 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
403 405
404 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 406 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
405 }; 407 };
406 408
407 } // namespace content 409 } // namespace content
408 410
409 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 411 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698