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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.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_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 virtual void SelectionChanged(const base::string16& text, 268 virtual void SelectionChanged(const base::string16& text,
269 size_t offset, 269 size_t offset,
270 const gfx::Range& range) OVERRIDE; 270 const gfx::Range& range) OVERRIDE;
271 virtual void SelectionBoundsChanged( 271 virtual void SelectionBoundsChanged(
272 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; 272 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE;
273 virtual void ScrollOffsetChanged() OVERRIDE; 273 virtual void ScrollOffsetChanged() OVERRIDE;
274 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 274 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
275 virtual void CopyFromCompositingSurface( 275 virtual void CopyFromCompositingSurface(
276 const gfx::Rect& src_subrect, 276 const gfx::Rect& src_subrect,
277 const gfx::Size& dst_size, 277 const gfx::Size& dst_size,
278 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; 278 const base::Callback<void(bool, const SkBitmap&)>& callback,
279 bool readback_config_rgb565) OVERRIDE;
279 virtual void CopyFromCompositingSurfaceToVideoFrame( 280 virtual void CopyFromCompositingSurfaceToVideoFrame(
280 const gfx::Rect& src_subrect, 281 const gfx::Rect& src_subrect,
281 const scoped_refptr<media::VideoFrame>& target, 282 const scoped_refptr<media::VideoFrame>& target,
282 const base::Callback<void(bool)>& callback) OVERRIDE; 283 const base::Callback<void(bool)>& callback) OVERRIDE;
283 virtual bool CanCopyToVideoFrame() const OVERRIDE; 284 virtual bool CanCopyToVideoFrame() const OVERRIDE;
284 virtual bool CanSubscribeFrame() const OVERRIDE; 285 virtual bool CanSubscribeFrame() const OVERRIDE;
285 virtual void BeginFrameSubscription( 286 virtual void BeginFrameSubscription(
286 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; 287 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE;
287 virtual void EndFrameSubscription() OVERRIDE; 288 virtual void EndFrameSubscription() OVERRIDE;
288 virtual void OnSwapCompositorFrame( 289 virtual void OnSwapCompositorFrame(
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; 560 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_;
560 561
561 base::WeakPtrFactory<RenderWidgetHostViewMac> 562 base::WeakPtrFactory<RenderWidgetHostViewMac>
562 software_frame_weak_ptr_factory_; 563 software_frame_weak_ptr_factory_;
563 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 564 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
564 }; 565 };
565 566
566 } // namespace content 567 } // namespace content
567 568
568 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 569 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698