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

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

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nits Created 4 years, 5 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 <IOSurface/IOSurface.h> 9 #include <IOSurface/IOSurface.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 SkColorType preferred_color_type) override; 305 SkColorType preferred_color_type) override;
306 void CopyFromCompositingSurfaceToVideoFrame( 306 void CopyFromCompositingSurfaceToVideoFrame(
307 const gfx::Rect& src_subrect, 307 const gfx::Rect& src_subrect,
308 const scoped_refptr<media::VideoFrame>& target, 308 const scoped_refptr<media::VideoFrame>& target,
309 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; 309 const base::Callback<void(const gfx::Rect&, bool)>& callback) override;
310 bool CanCopyToVideoFrame() const override; 310 bool CanCopyToVideoFrame() const override;
311 void BeginFrameSubscription( 311 void BeginFrameSubscription(
312 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; 312 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override;
313 void EndFrameSubscription() override; 313 void EndFrameSubscription() override;
314 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const override; 314 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const override;
315 void OnSwapCompositorFrame( 315 void OnSwapCompositorFrame(uint32_t output_surface_id,
316 uint32_t output_surface_id, 316 cc::CompositorFrame frame) override;
317 std::unique_ptr<cc::CompositorFrame> frame) override;
318 void ClearCompositorFrame() override; 317 void ClearCompositorFrame() override;
319 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( 318 BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
320 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; 319 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override;
321 gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) override; 320 gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) override;
322 321
323 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; 322 bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
324 void GetScreenInfo(blink::WebScreenInfo* results) override; 323 void GetScreenInfo(blink::WebScreenInfo* results) override;
325 gfx::Rect GetBoundsInRootWindow() override; 324 gfx::Rect GetBoundsInRootWindow() override;
326 void LockCompositingSurface() override; 325 void LockCompositingSurface() override;
327 void UnlockCompositingSurface() override; 326 void UnlockCompositingSurface() override;
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 615
617 // Factory used to safely scope delayed calls to ShutdownHost(). 616 // Factory used to safely scope delayed calls to ShutdownHost().
618 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 617 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
619 618
620 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 619 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
621 }; 620 };
622 621
623 } // namespace content 622 } // namespace content
624 623
625 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 624 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698