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

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

Issue 2147873003: cc: Dedup IPCs to return resources to client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 months 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 <stddef.h> 10 #include <stddef.h>
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 void UpdateBackingStoreProperties(); 439 void UpdateBackingStoreProperties();
440 440
441 // Ensure that the display link is associated with the correct display. 441 // Ensure that the display link is associated with the correct display.
442 void UpdateDisplayLink(); 442 void UpdateDisplayLink();
443 443
444 void PauseForPendingResizeOrRepaintsAndDraw(); 444 void PauseForPendingResizeOrRepaintsAndDraw();
445 445
446 // BrowserCompositorMacClient implementation. 446 // BrowserCompositorMacClient implementation.
447 NSView* BrowserCompositorMacGetNSView() const override; 447 NSView* BrowserCompositorMacGetNSView() const override;
448 SkColor BrowserCompositorMacGetGutterColor(SkColor color) const override; 448 SkColor BrowserCompositorMacGetGutterColor(SkColor color) const override;
449 void BrowserCompositorMacSendCompositorSwapAck(
450 int output_surface_id,
451 const cc::CompositorFrameAck& ack) override;
452 void BrowserCompositorMacSendReclaimCompositorResources( 449 void BrowserCompositorMacSendReclaimCompositorResources(
453 int output_surface_id, 450 int output_surface_id,
454 const cc::CompositorFrameAck& ack) override; 451 bool is_swap_ack,
452 const cc::ReturnedResourceArray& resources) override;
455 void BrowserCompositorMacOnLostCompositorResources() override; 453 void BrowserCompositorMacOnLostCompositorResources() override;
456 void BrowserCompositorMacUpdateVSyncParameters( 454 void BrowserCompositorMacUpdateVSyncParameters(
457 const base::TimeTicks& timebase, 455 const base::TimeTicks& timebase,
458 const base::TimeDelta& interval) override; 456 const base::TimeDelta& interval) override;
459 void BrowserCompositorMacSendBeginFrame( 457 void BrowserCompositorMacSendBeginFrame(
460 const cc::BeginFrameArgs& args) override; 458 const cc::BeginFrameArgs& args) override;
461 459
462 // AcceleratedWidgetMacNSView implementation. 460 // AcceleratedWidgetMacNSView implementation.
463 NSView* AcceleratedWidgetGetNSView() const override; 461 NSView* AcceleratedWidgetGetNSView() const override;
464 void AcceleratedWidgetGetVSyncParameters( 462 void AcceleratedWidgetGetVSyncParameters(
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 538
541 // Factory used to safely scope delayed calls to ShutdownHost(). 539 // Factory used to safely scope delayed calls to ShutdownHost().
542 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 540 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
543 541
544 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 542 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
545 }; 543 };
546 544
547 } // namespace content 545 } // namespace content
548 546
549 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 547 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698