Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.h

Issue 1416493010: Clean up Mac swap acknowledgement code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update latency info Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 void DelegatedFrameHostSendReclaimCompositorResources( 502 void DelegatedFrameHostSendReclaimCompositorResources(
503 int output_surface_id, 503 int output_surface_id,
504 const cc::CompositorFrameAck& ack) override; 504 const cc::CompositorFrameAck& ack) override;
505 void DelegatedFrameHostOnLostCompositorResources() override; 505 void DelegatedFrameHostOnLostCompositorResources() override;
506 void DelegatedFrameHostUpdateVSyncParameters( 506 void DelegatedFrameHostUpdateVSyncParameters(
507 const base::TimeTicks& timebase, 507 const base::TimeTicks& timebase,
508 const base::TimeDelta& interval) override; 508 const base::TimeDelta& interval) override;
509 509
510 // AcceleratedWidgetMacNSView implementation. 510 // AcceleratedWidgetMacNSView implementation.
511 NSView* AcceleratedWidgetGetNSView() const override; 511 NSView* AcceleratedWidgetGetNSView() const override;
512 bool AcceleratedWidgetShouldIgnoreBackpressure() const override;
513 void AcceleratedWidgetGetVSyncParameters( 512 void AcceleratedWidgetGetVSyncParameters(
514 base::TimeTicks* timebase, base::TimeDelta* interval) const override; 513 base::TimeTicks* timebase, base::TimeDelta* interval) const override;
515 void AcceleratedWidgetSwapCompleted( 514 void AcceleratedWidgetSwapCompleted() override;
516 const std::vector<ui::LatencyInfo>& latency_info) override;
517 void AcceleratedWidgetHitError() override;
518 515
519 // Transition from being in the Suspended state to being in the Destroyed 516 // Transition from being in the Suspended state to being in the Destroyed
520 // state, if appropriate (see BrowserCompositorViewState for details). 517 // state, if appropriate (see BrowserCompositorViewState for details).
521 void DestroySuspendedBrowserCompositorViewIfNeeded(); 518 void DestroySuspendedBrowserCompositorViewIfNeeded();
522 519
523 private: 520 private:
524 friend class RenderWidgetHostViewMacTest; 521 friend class RenderWidgetHostViewMacTest;
525 522
526 // Returns whether this render view is a popup (autocomplete window). 523 // Returns whether this render view is a popup (autocomplete window).
527 bool IsPopup() const; 524 bool IsPopup() const;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 601
605 // Factory used to safely scope delayed calls to ShutdownHost(). 602 // Factory used to safely scope delayed calls to ShutdownHost().
606 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 603 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
607 604
608 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 605 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
609 }; 606 };
610 607
611 } // namespace content 608 } // namespace content
612 609
613 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 610 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.cc ('k') | content/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698