| 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; |
| 486 | 489 |
| 487 // AcceleratedWidgetMacNSView implementation. | 490 // AcceleratedWidgetMacNSView implementation. |
| 488 NSView* AcceleratedWidgetGetNSView() const override; | 491 NSView* AcceleratedWidgetGetNSView() const override; |
| 489 bool AcceleratedWidgetShouldIgnoreBackpressure() const override; | 492 bool AcceleratedWidgetShouldIgnoreBackpressure() const override; |
| 490 void AcceleratedWidgetSwapCompleted( | 493 void AcceleratedWidgetSwapCompleted( |
| 491 const std::vector<ui::LatencyInfo>& latency_info) override; | 494 const std::vector<ui::LatencyInfo>& latency_info) override; |
| 492 void AcceleratedWidgetHitError() override; | 495 void AcceleratedWidgetHitError() override; |
| 493 | 496 |
| 494 // Transition from being in the Suspended state to being in the Destroyed | 497 // Transition from being in the Suspended state to being in the Destroyed |
| 495 // state, if appropriate (see BrowserCompositorViewState for details). | 498 // state, if appropriate (see BrowserCompositorViewState for details). |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 | 579 |
| 577 // Factory used to safely scope delayed calls to ShutdownHost(). | 580 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 578 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 581 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 579 | 582 |
| 580 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 583 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 581 }; | 584 }; |
| 582 | 585 |
| 583 } // namespace content | 586 } // namespace content |
| 584 | 587 |
| 585 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 588 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |