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

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

Issue 2890063002: Send BeginFrames for the renderer using Mojo (Closed)
Patch Set: c Created 3 years, 7 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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 void UpdateBackingStoreProperties(); 446 void UpdateBackingStoreProperties();
447 447
448 // Ensure that the display link is associated with the correct display. 448 // Ensure that the display link is associated with the correct display.
449 void UpdateDisplayLink(); 449 void UpdateDisplayLink();
450 450
451 void PauseForPendingResizeOrRepaintsAndDraw(); 451 void PauseForPendingResizeOrRepaintsAndDraw();
452 452
453 // BrowserCompositorMacClient implementation. 453 // BrowserCompositorMacClient implementation.
454 NSView* BrowserCompositorMacGetNSView() const override; 454 NSView* BrowserCompositorMacGetNSView() const override;
455 SkColor BrowserCompositorMacGetGutterColor(SkColor color) const override; 455 SkColor BrowserCompositorMacGetGutterColor(SkColor color) const override;
456 void BrowserCompositorMacSendBeginFrame( 456 void BrowserCompositorMacOnBeginFrame() override;
457 const cc::BeginFrameArgs& args) override;
458 457
459 // AcceleratedWidgetMacNSView implementation. 458 // AcceleratedWidgetMacNSView implementation.
460 NSView* AcceleratedWidgetGetNSView() const override; 459 NSView* AcceleratedWidgetGetNSView() const override;
461 void AcceleratedWidgetGetVSyncParameters( 460 void AcceleratedWidgetGetVSyncParameters(
462 base::TimeTicks* timebase, base::TimeDelta* interval) const override; 461 base::TimeTicks* timebase, base::TimeDelta* interval) const override;
463 void AcceleratedWidgetSwapCompleted() override; 462 void AcceleratedWidgetSwapCompleted() override;
464 463
465 // Exposed for testing. 464 // Exposed for testing.
466 cc::SurfaceId SurfaceIdForTesting() const override; 465 cc::SurfaceId SurfaceIdForTesting() const override;
467 466
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 566
568 // Factory used to safely scope delayed calls to ShutdownHost(). 567 // Factory used to safely scope delayed calls to ShutdownHost().
569 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 568 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
570 569
571 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 570 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
572 }; 571 };
573 572
574 } // namespace content 573 } // namespace content
575 574
576 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 575 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698