| 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 // Update properties, such as the scale factor for the backing store | 484 // Update properties, such as the scale factor for the backing store |
| 485 // and for any CALayers, and the screen color profile. | 485 // and for any CALayers, and the screen color profile. |
| 486 void UpdateBackingStoreProperties(); | 486 void UpdateBackingStoreProperties(); |
| 487 | 487 |
| 488 // Ensure that the display link is associated with the correct display. | 488 // Ensure that the display link is associated with the correct display. |
| 489 void UpdateDisplayLink(); | 489 void UpdateDisplayLink(); |
| 490 | 490 |
| 491 void PauseForPendingResizeOrRepaintsAndDraw(); | 491 void PauseForPendingResizeOrRepaintsAndDraw(); |
| 492 | 492 |
| 493 // DelegatedFrameHostClient implementation. | 493 // DelegatedFrameHostClient implementation. |
| 494 int DelegatedFrameHostGetGpuMemoryBufferClientId() const override; |
| 494 ui::Layer* DelegatedFrameHostGetLayer() const override; | 495 ui::Layer* DelegatedFrameHostGetLayer() const override; |
| 495 bool DelegatedFrameHostIsVisible() const override; | 496 bool DelegatedFrameHostIsVisible() const override; |
| 496 SkColor DelegatedFrameHostGetGutterColor(SkColor color) const override; | 497 SkColor DelegatedFrameHostGetGutterColor(SkColor color) const override; |
| 497 gfx::Size DelegatedFrameHostDesiredSizeInDIP() const override; | 498 gfx::Size DelegatedFrameHostDesiredSizeInDIP() const override; |
| 498 bool DelegatedFrameCanCreateResizeLock() const override; | 499 bool DelegatedFrameCanCreateResizeLock() const override; |
| 499 std::unique_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock( | 500 std::unique_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock( |
| 500 bool defer_compositor_lock) override; | 501 bool defer_compositor_lock) override; |
| 501 void DelegatedFrameHostResizeLockWasReleased() override; | 502 void DelegatedFrameHostResizeLockWasReleased() override; |
| 502 void DelegatedFrameHostSendCompositorSwapAck( | 503 void DelegatedFrameHostSendCompositorSwapAck( |
| 503 int output_surface_id, | 504 int output_surface_id, |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 | 620 |
| 620 // Factory used to safely scope delayed calls to ShutdownHost(). | 621 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 621 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 622 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 622 | 623 |
| 623 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 624 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 624 }; | 625 }; |
| 625 | 626 |
| 626 } // namespace content | 627 } // namespace content |
| 627 | 628 |
| 628 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 629 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |