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

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

Issue 2761843002: [content] Forward BeginFrameAcks through RWHVMac/BrowserCompositorMac. (Closed)
Patch Set: sync Created 3 years, 9 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; 301 const base::Callback<void(const gfx::Rect&, bool)>& callback) override;
302 void BeginFrameSubscription( 302 void BeginFrameSubscription(
303 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; 303 std::unique_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override;
304 void EndFrameSubscription() override; 304 void EndFrameSubscription() override;
305 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const override; 305 ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const override;
306 void FocusedNodeChanged(bool is_editable_node, 306 void FocusedNodeChanged(bool is_editable_node,
307 const gfx::Rect& node_bounds_in_screen) override; 307 const gfx::Rect& node_bounds_in_screen) override;
308 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, 308 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id,
309 const cc::LocalSurfaceId& local_surface_id, 309 const cc::LocalSurfaceId& local_surface_id,
310 cc::CompositorFrame frame) override; 310 cc::CompositorFrame frame) override;
311 void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack) override;
311 void ClearCompositorFrame() override; 312 void ClearCompositorFrame() override;
312 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( 313 BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
313 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override; 314 BrowserAccessibilityDelegate* delegate, bool for_root_frame) override;
314 gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) override; 315 gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) override;
315 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; 316 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override;
316 317
317 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; 318 bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
318 gfx::Rect GetBoundsInRootWindow() override; 319 gfx::Rect GetBoundsInRootWindow() override;
319 320
320 bool LockMouse() override; 321 bool LockMouse() override;
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 555
555 // Factory used to safely scope delayed calls to ShutdownHost(). 556 // Factory used to safely scope delayed calls to ShutdownHost().
556 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 557 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
557 558
558 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 559 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
559 }; 560 };
560 561
561 } // namespace content 562 } // namespace content
562 563
563 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 564 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698