| 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 <list> | 10 #include <list> |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 int output_surface_id, | 489 int output_surface_id, |
| 490 const cc::CompositorFrameAck& ack) override; | 490 const cc::CompositorFrameAck& ack) override; |
| 491 void DelegatedFrameHostOnLostCompositorResources() override; | 491 void DelegatedFrameHostOnLostCompositorResources() override; |
| 492 void DelegatedFrameHostUpdateVSyncParameters( | 492 void DelegatedFrameHostUpdateVSyncParameters( |
| 493 const base::TimeTicks& timebase, | 493 const base::TimeTicks& timebase, |
| 494 const base::TimeDelta& interval) override; | 494 const base::TimeDelta& interval) override; |
| 495 | 495 |
| 496 // AcceleratedWidgetMacNSView implementation. | 496 // AcceleratedWidgetMacNSView implementation. |
| 497 NSView* AcceleratedWidgetGetNSView() const override; | 497 NSView* AcceleratedWidgetGetNSView() const override; |
| 498 bool AcceleratedWidgetShouldIgnoreBackpressure() const override; | 498 bool AcceleratedWidgetShouldIgnoreBackpressure() const override; |
| 499 uint32_t AcceleratedWidgetGetDisplayIDForVSync() const override; |
| 499 void AcceleratedWidgetSwapCompleted( | 500 void AcceleratedWidgetSwapCompleted( |
| 500 const std::vector<ui::LatencyInfo>& latency_info) override; | 501 const std::vector<ui::LatencyInfo>& latency_info) override; |
| 501 void AcceleratedWidgetHitError() override; | 502 void AcceleratedWidgetHitError() override; |
| 502 | 503 |
| 503 // Transition from being in the Suspended state to being in the Destroyed | 504 // Transition from being in the Suspended state to being in the Destroyed |
| 504 // state, if appropriate (see BrowserCompositorViewState for details). | 505 // state, if appropriate (see BrowserCompositorViewState for details). |
| 505 void DestroySuspendedBrowserCompositorViewIfNeeded(); | 506 void DestroySuspendedBrowserCompositorViewIfNeeded(); |
| 506 | 507 |
| 507 private: | 508 private: |
| 508 friend class RenderWidgetHostViewMacTest; | 509 friend class RenderWidgetHostViewMacTest; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 | 586 |
| 586 // Factory used to safely scope delayed calls to ShutdownHost(). | 587 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 587 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 588 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 588 | 589 |
| 589 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 590 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 590 }; | 591 }; |
| 591 | 592 |
| 592 } // namespace content | 593 } // namespace content |
| 593 | 594 |
| 594 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 595 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |