| OLD | NEW |
| 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 // and for any CALayers, and the screen color profile. | 438 // and for any CALayers, and the screen color profile. |
| 439 void UpdateBackingStoreProperties(); | 439 void UpdateBackingStoreProperties(); |
| 440 | 440 |
| 441 // Ensure that the display link is associated with the correct display. | 441 // Ensure that the display link is associated with the correct display. |
| 442 void UpdateDisplayLink(); | 442 void UpdateDisplayLink(); |
| 443 | 443 |
| 444 void PauseForPendingResizeOrRepaintsAndDraw(); | 444 void PauseForPendingResizeOrRepaintsAndDraw(); |
| 445 | 445 |
| 446 // BrowserCompositorMacClient implementation. | 446 // BrowserCompositorMacClient implementation. |
| 447 NSView* BrowserCompositorMacGetNSView() const override; | 447 NSView* BrowserCompositorMacGetNSView() const override; |
| 448 bool BrowserCompositorMacIsVisible() const override; | |
| 449 SkColor BrowserCompositorMacGetGutterColor(SkColor color) const override; | 448 SkColor BrowserCompositorMacGetGutterColor(SkColor color) const override; |
| 450 void BrowserCompositorMacSendCompositorSwapAck( | 449 void BrowserCompositorMacSendCompositorSwapAck( |
| 451 int output_surface_id, | 450 int output_surface_id, |
| 452 const cc::CompositorFrameAck& ack) override; | 451 const cc::CompositorFrameAck& ack) override; |
| 453 void BrowserCompositorMacSendReclaimCompositorResources( | 452 void BrowserCompositorMacSendReclaimCompositorResources( |
| 454 int output_surface_id, | 453 int output_surface_id, |
| 455 const cc::CompositorFrameAck& ack) override; | 454 const cc::CompositorFrameAck& ack) override; |
| 456 void BrowserCompositorMacOnLostCompositorResources() override; | 455 void BrowserCompositorMacOnLostCompositorResources() override; |
| 457 void BrowserCompositorMacUpdateVSyncParameters( | 456 void BrowserCompositorMacUpdateVSyncParameters( |
| 458 const base::TimeTicks& timebase, | 457 const base::TimeTicks& timebase, |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 | 540 |
| 542 // Factory used to safely scope delayed calls to ShutdownHost(). | 541 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 543 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 542 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 544 | 543 |
| 545 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 544 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 546 }; | 545 }; |
| 547 | 546 |
| 548 } // namespace content | 547 } // namespace content |
| 549 | 548 |
| 550 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 549 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |