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; | |
500 void AcceleratedWidgetSwapCompleted( | 499 void AcceleratedWidgetSwapCompleted( |
501 const std::vector<ui::LatencyInfo>& latency_info) override; | 500 const std::vector<ui::LatencyInfo>& latency_info) override; |
502 void AcceleratedWidgetHitError() override; | 501 void AcceleratedWidgetHitError() override; |
503 | 502 |
504 // Transition from being in the Suspended state to being in the Destroyed | 503 // Transition from being in the Suspended state to being in the Destroyed |
505 // state, if appropriate (see BrowserCompositorViewState for details). | 504 // state, if appropriate (see BrowserCompositorViewState for details). |
506 void DestroySuspendedBrowserCompositorViewIfNeeded(); | 505 void DestroySuspendedBrowserCompositorViewIfNeeded(); |
507 | 506 |
508 private: | 507 private: |
509 friend class RenderWidgetHostViewMacTest; | 508 friend class RenderWidgetHostViewMacTest; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 | 585 |
587 // Factory used to safely scope delayed calls to ShutdownHost(). | 586 // Factory used to safely scope delayed calls to ShutdownHost(). |
588 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 587 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
589 | 588 |
590 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 589 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
591 }; | 590 }; |
592 | 591 |
593 } // namespace content | 592 } // namespace content |
594 | 593 |
595 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 594 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |