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

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

Issue 88033002: Add RGB565 Texture readback support in gl_helper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased to ToT! Created 6 years, 11 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_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 <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 virtual void SelectionChanged(const base::string16& text, 202 virtual void SelectionChanged(const base::string16& text,
203 size_t offset, 203 size_t offset,
204 const gfx::Range& range) OVERRIDE; 204 const gfx::Range& range) OVERRIDE;
205 virtual void SelectionBoundsChanged( 205 virtual void SelectionBoundsChanged(
206 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; 206 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE;
207 virtual void ScrollOffsetChanged() OVERRIDE; 207 virtual void ScrollOffsetChanged() OVERRIDE;
208 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 208 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
209 virtual void CopyFromCompositingSurface( 209 virtual void CopyFromCompositingSurface(
210 const gfx::Rect& src_subrect, 210 const gfx::Rect& src_subrect,
211 const gfx::Size& dst_size, 211 const gfx::Size& dst_size,
212 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; 212 const base::Callback<void(bool, const SkBitmap&)>& callback,
213 bool readback_config_rgb565) OVERRIDE;
213 virtual void CopyFromCompositingSurfaceToVideoFrame( 214 virtual void CopyFromCompositingSurfaceToVideoFrame(
214 const gfx::Rect& src_subrect, 215 const gfx::Rect& src_subrect,
215 const scoped_refptr<media::VideoFrame>& target, 216 const scoped_refptr<media::VideoFrame>& target,
216 const base::Callback<void(bool)>& callback) OVERRIDE; 217 const base::Callback<void(bool)>& callback) OVERRIDE;
217 virtual bool CanCopyToVideoFrame() const OVERRIDE; 218 virtual bool CanCopyToVideoFrame() const OVERRIDE;
218 virtual bool CanSubscribeFrame() const OVERRIDE; 219 virtual bool CanSubscribeFrame() const OVERRIDE;
219 virtual void BeginFrameSubscription( 220 virtual void BeginFrameSubscription(
220 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; 221 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE;
221 virtual void EndFrameSubscription() OVERRIDE; 222 virtual void EndFrameSubscription() OVERRIDE;
222 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; 223 virtual void OnAcceleratedCompositingStateChange() OVERRIDE;
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 void RemovingFromRootWindow(); 484 void RemovingFromRootWindow();
484 485
485 // Called after commit for the last reference to the texture going away 486 // Called after commit for the last reference to the texture going away
486 // after it was released as the frontbuffer. 487 // after it was released as the frontbuffer.
487 void SetSurfaceNotInUseByCompositor(scoped_refptr<ui::Texture>); 488 void SetSurfaceNotInUseByCompositor(scoped_refptr<ui::Texture>);
488 489
489 // Called after async thumbnailer task completes. Scales and crops the result 490 // Called after async thumbnailer task completes. Scales and crops the result
490 // of the copy. 491 // of the copy.
491 static void CopyFromCompositingSurfaceHasResult( 492 static void CopyFromCompositingSurfaceHasResult(
492 const gfx::Size& dst_size_in_pixel, 493 const gfx::Size& dst_size_in_pixel,
494 bool readback_config_rgb565,
493 const base::Callback<void(bool, const SkBitmap&)>& callback, 495 const base::Callback<void(bool, const SkBitmap&)>& callback,
494 scoped_ptr<cc::CopyOutputResult> result); 496 scoped_ptr<cc::CopyOutputResult> result);
495 static void PrepareTextureCopyOutputResult( 497 static void PrepareTextureCopyOutputResult(
496 const gfx::Size& dst_size_in_pixel, 498 const gfx::Size& dst_size_in_pixel,
499 bool readback_config_rgb565,
497 const base::Callback<void(bool, const SkBitmap&)>& callback, 500 const base::Callback<void(bool, const SkBitmap&)>& callback,
498 scoped_ptr<cc::CopyOutputResult> result); 501 scoped_ptr<cc::CopyOutputResult> result);
499 static void PrepareBitmapCopyOutputResult( 502 static void PrepareBitmapCopyOutputResult(
500 const gfx::Size& dst_size_in_pixel, 503 const gfx::Size& dst_size_in_pixel,
501 const base::Callback<void(bool, const SkBitmap&)>& callback, 504 const base::Callback<void(bool, const SkBitmap&)>& callback,
502 scoped_ptr<cc::CopyOutputResult> result); 505 scoped_ptr<cc::CopyOutputResult> result);
503 static void CopyFromCompositingSurfaceHasResultForVideo( 506 static void CopyFromCompositingSurfaceHasResultForVideo(
504 base::WeakPtr<RenderWidgetHostViewAura> rwhva, 507 base::WeakPtr<RenderWidgetHostViewAura> rwhva,
505 scoped_refptr<OwnedMailbox> subscriber_texture, 508 scoped_refptr<OwnedMailbox> subscriber_texture,
506 scoped_refptr<media::VideoFrame> video_frame, 509 scoped_refptr<media::VideoFrame> video_frame,
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 // passed to windowless plugins like Flash/Silverlight, etc as the 804 // passed to windowless plugins like Flash/Silverlight, etc as the
802 // container window. 805 // container window.
803 HWND plugin_parent_window_; 806 HWND plugin_parent_window_;
804 #endif 807 #endif
805 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 808 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
806 }; 809 };
807 810
808 } // namespace content 811 } // namespace content
809 812
810 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 813 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698