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/IOSurfaceAPI.h> | 9 #include <IOSurface/IOSurfaceAPI.h> |
10 #include <list> | 10 #include <list> |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 scoped_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock( | 476 scoped_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock( |
477 bool defer_compositor_lock) override; | 477 bool defer_compositor_lock) override; |
478 void DelegatedFrameHostResizeLockWasReleased() override; | 478 void DelegatedFrameHostResizeLockWasReleased() override; |
479 void DelegatedFrameHostSendCompositorSwapAck( | 479 void DelegatedFrameHostSendCompositorSwapAck( |
480 int output_surface_id, | 480 int output_surface_id, |
481 const cc::CompositorFrameAck& ack) override; | 481 const cc::CompositorFrameAck& ack) override; |
482 void DelegatedFrameHostSendReclaimCompositorResources( | 482 void DelegatedFrameHostSendReclaimCompositorResources( |
483 int output_surface_id, | 483 int output_surface_id, |
484 const cc::CompositorFrameAck& ack) override; | 484 const cc::CompositorFrameAck& ack) override; |
485 void DelegatedFrameHostOnLostCompositorResources() override; | 485 void DelegatedFrameHostOnLostCompositorResources() override; |
486 void DelegatedFrameHostUpdateVSyncParameters( | |
487 const base::TimeTicks& timebase, | |
488 const base::TimeDelta& interval) override; | |
489 | 486 |
490 // AcceleratedWidgetMacNSView implementation. | 487 // AcceleratedWidgetMacNSView implementation. |
491 NSView* AcceleratedWidgetGetNSView() const override; | 488 NSView* AcceleratedWidgetGetNSView() const override; |
492 bool AcceleratedWidgetShouldIgnoreBackpressure() const override; | 489 bool AcceleratedWidgetShouldIgnoreBackpressure() const override; |
493 void AcceleratedWidgetSwapCompleted( | 490 void AcceleratedWidgetSwapCompleted( |
494 const std::vector<ui::LatencyInfo>& latency_info) override; | 491 const std::vector<ui::LatencyInfo>& latency_info) override; |
495 void AcceleratedWidgetHitError() override; | 492 void AcceleratedWidgetHitError() override; |
496 | 493 |
497 // Transition from being in the Suspended state to being in the Destroyed | 494 // Transition from being in the Suspended state to being in the Destroyed |
498 // state, if appropriate (see BrowserCompositorViewState for details). | 495 // state, if appropriate (see BrowserCompositorViewState for details). |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 | 576 |
580 // Factory used to safely scope delayed calls to ShutdownHost(). | 577 // Factory used to safely scope delayed calls to ShutdownHost(). |
581 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 578 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
582 | 579 |
583 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 580 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
584 }; | 581 }; |
585 | 582 |
586 } // namespace content | 583 } // namespace content |
587 | 584 |
588 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 585 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |