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

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

Issue 12090109: Tab Capture: Backing store readbacks to YV12 VideoFrames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style fix per wjia Created 7 years, 10 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 | Annotate | Revision Log
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 <map> 8 #include <map>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 101 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
102 int gpu_host_id) OVERRIDE; 102 int gpu_host_id) OVERRIDE;
103 virtual void AcceleratedSurfaceSuspend() OVERRIDE; 103 virtual void AcceleratedSurfaceSuspend() OVERRIDE;
104 virtual void AcceleratedSurfaceRelease() OVERRIDE; 104 virtual void AcceleratedSurfaceRelease() OVERRIDE;
105 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; 105 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE;
106 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 106 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
107 virtual void CopyFromCompositingSurface( 107 virtual void CopyFromCompositingSurface(
108 const gfx::Rect& src_subrect, 108 const gfx::Rect& src_subrect,
109 const gfx::Size& dst_size, 109 const gfx::Size& dst_size,
110 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; 110 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE;
111 virtual void CopyFromCompositingSurfaceToVideoFrame(
112 const gfx::Rect& src_subrect,
113 const scoped_refptr<media::VideoFrame>& target,
114 const base::Callback<void(bool)>& callback) OVERRIDE;
115 virtual bool CanCopyToVideoFrame() const OVERRIDE;
111 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 116 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
112 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; 117 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE;
113 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; 118 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE;
114 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; 119 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE;
115 virtual void UnhandledWheelEvent( 120 virtual void UnhandledWheelEvent(
116 const WebKit::WebMouseWheelEvent& event) OVERRIDE; 121 const WebKit::WebMouseWheelEvent& event) OVERRIDE;
117 virtual void ProcessAckedTouchEvent(const WebKit::WebTouchEvent& touch, 122 virtual void ProcessAckedTouchEvent(const WebKit::WebTouchEvent& touch,
118 InputEventAckState ack_result) OVERRIDE; 123 InputEventAckState ack_result) OVERRIDE;
119 virtual void SetHasHorizontalScrollbar( 124 virtual void SetHasHorizontalScrollbar(
120 bool has_horizontal_scrollbar) OVERRIDE; 125 bool has_horizontal_scrollbar) OVERRIDE;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 200
196 // The mailbox name of the previously received frame. 201 // The mailbox name of the previously received frame.
197 std::string current_mailbox_name_; 202 std::string current_mailbox_name_;
198 203
199 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 204 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
200 }; 205 };
201 206
202 } // namespace content 207 } // namespace content
203 208
204 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 209 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698