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

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

Issue 859423002: Explicitly specify the ui::Compositor to DelegatedFrameHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use compositor Created 5 years, 11 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/IOSurfaceAPI.h> 9 #include <IOSurface/IOSurfaceAPI.h>
10 #include <list> 10 #include <list>
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 443
444 // Update the scale factor for the backing store and for any CALayers. 444 // Update the scale factor for the backing store and for any CALayers.
445 void UpdateBackingStoreScaleFactor(); 445 void UpdateBackingStoreScaleFactor();
446 446
447 // Ensure that the display link is associated with the correct display. 447 // Ensure that the display link is associated with the correct display.
448 void UpdateDisplayLink(); 448 void UpdateDisplayLink();
449 449
450 void PauseForPendingResizeOrRepaintsAndDraw(); 450 void PauseForPendingResizeOrRepaintsAndDraw();
451 451
452 // DelegatedFrameHostClient implementation. 452 // DelegatedFrameHostClient implementation.
453 ui::Compositor* GetCompositor() const override;
454 ui::Layer* GetLayer() override; 453 ui::Layer* GetLayer() override;
455 RenderWidgetHostImpl* GetHost() override; 454 RenderWidgetHostImpl* GetHost() override;
456 bool IsVisible() override; 455 bool IsVisible() override;
457 scoped_ptr<ResizeLock> CreateResizeLock(bool defer_compositor_lock) override; 456 scoped_ptr<ResizeLock> CreateResizeLock(bool defer_compositor_lock) override;
458 gfx::Size DesiredFrameSize() override; 457 gfx::Size DesiredFrameSize() override;
459 float CurrentDeviceScaleFactor() override; 458 float CurrentDeviceScaleFactor() override;
460 gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) override; 459 gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) override;
461 DelegatedFrameHost* GetDelegatedFrameHost() const override; 460 DelegatedFrameHost* GetDelegatedFrameHost() const override;
462 461
463 // AcceleratedWidgetMacNSView implementation. 462 // AcceleratedWidgetMacNSView implementation.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 551
553 // Factory used to safely scope delayed calls to ShutdownHost(). 552 // Factory used to safely scope delayed calls to ShutdownHost().
554 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 553 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
555 554
556 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 555 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
557 }; 556 };
558 557
559 } // namespace content 558 } // namespace content
560 559
561 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 560 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698