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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.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_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 virtual void SelectionChanged(const string16& text, 138 virtual void SelectionChanged(const string16& text,
139 size_t offset, 139 size_t offset,
140 const ui::Range& range) OVERRIDE; 140 const ui::Range& range) OVERRIDE;
141 virtual void SelectionBoundsChanged( 141 virtual void SelectionBoundsChanged(
142 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; 142 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE;
143 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 143 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
144 virtual void CopyFromCompositingSurface( 144 virtual void CopyFromCompositingSurface(
145 const gfx::Rect& src_subrect, 145 const gfx::Rect& src_subrect,
146 const gfx::Size& dst_size, 146 const gfx::Size& dst_size,
147 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; 147 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE;
148 virtual void CopyFromCompositingSurfaceToVideoFrame(
149 const gfx::Rect& src_subrect,
150 const scoped_refptr<media::VideoFrame>& target,
151 const base::Callback<void(bool)>& callback) OVERRIDE;
152 virtual bool CanCopyToVideoFrame() const OVERRIDE;
148 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; 153 virtual void OnAcceleratedCompositingStateChange() OVERRIDE;
149 virtual void AcceleratedSurfaceBuffersSwapped( 154 virtual void AcceleratedSurfaceBuffersSwapped(
150 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params_in_pixel, 155 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params_in_pixel,
151 int gpu_host_id) OVERRIDE; 156 int gpu_host_id) OVERRIDE;
152 virtual void AcceleratedSurfacePostSubBuffer( 157 virtual void AcceleratedSurfacePostSubBuffer(
153 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params_in_pixel, 158 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params_in_pixel,
154 int gpu_host_id) OVERRIDE; 159 int gpu_host_id) OVERRIDE;
155 virtual void AcceleratedSurfaceSuspend() OVERRIDE; 160 virtual void AcceleratedSurfaceSuspend() OVERRIDE;
156 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; 161 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE;
157 virtual void AcceleratedSurfaceRelease() OVERRIDE; 162 virtual void AcceleratedSurfaceRelease() OVERRIDE;
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 // observer is not owned by the view, and must remove itself as an oberver 473 // observer is not owned by the view, and must remove itself as an oberver
469 // when it is being destroyed. 474 // when it is being destroyed.
470 PaintObserver* paint_observer_; 475 PaintObserver* paint_observer_;
471 476
472 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 477 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
473 }; 478 };
474 479
475 } // namespace content 480 } // namespace content
476 481
477 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 482 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698