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

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

Issue 1989453003: cc: Add ScopedReadLockGpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix aura typo Created 4 years, 7 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 // Update properties, such as the scale factor for the backing store 484 // Update properties, such as the scale factor for the backing store
485 // and for any CALayers, and the screen color profile. 485 // and for any CALayers, and the screen color profile.
486 void UpdateBackingStoreProperties(); 486 void UpdateBackingStoreProperties();
487 487
488 // Ensure that the display link is associated with the correct display. 488 // Ensure that the display link is associated with the correct display.
489 void UpdateDisplayLink(); 489 void UpdateDisplayLink();
490 490
491 void PauseForPendingResizeOrRepaintsAndDraw(); 491 void PauseForPendingResizeOrRepaintsAndDraw();
492 492
493 // DelegatedFrameHostClient implementation. 493 // DelegatedFrameHostClient implementation.
494 int DelegatedFrameHostGetGpuMemoryBufferClientId() const override;
494 ui::Layer* DelegatedFrameHostGetLayer() const override; 495 ui::Layer* DelegatedFrameHostGetLayer() const override;
495 bool DelegatedFrameHostIsVisible() const override; 496 bool DelegatedFrameHostIsVisible() const override;
496 SkColor DelegatedFrameHostGetGutterColor(SkColor color) const override; 497 SkColor DelegatedFrameHostGetGutterColor(SkColor color) const override;
497 gfx::Size DelegatedFrameHostDesiredSizeInDIP() const override; 498 gfx::Size DelegatedFrameHostDesiredSizeInDIP() const override;
498 bool DelegatedFrameCanCreateResizeLock() const override; 499 bool DelegatedFrameCanCreateResizeLock() const override;
499 std::unique_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock( 500 std::unique_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock(
500 bool defer_compositor_lock) override; 501 bool defer_compositor_lock) override;
501 void DelegatedFrameHostResizeLockWasReleased() override; 502 void DelegatedFrameHostResizeLockWasReleased() override;
502 void DelegatedFrameHostSendCompositorSwapAck( 503 void DelegatedFrameHostSendCompositorSwapAck(
503 int output_surface_id, 504 int output_surface_id,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 620
620 // Factory used to safely scope delayed calls to ShutdownHost(). 621 // Factory used to safely scope delayed calls to ShutdownHost().
621 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 622 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
622 623
623 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 624 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
624 }; 625 };
625 626
626 } // namespace content 627 } // namespace content
627 628
628 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 629 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698