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

Unified Diff: content/browser/renderer_host/delegated_frame_host.h

Issue 2773433003: Fix CompositorResizeLock to do something. (Closed)
Patch Set: resizelock: . Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/delegated_frame_host.h
diff --git a/content/browser/renderer_host/delegated_frame_host.h b/content/browser/renderer_host/delegated_frame_host.h
index 4d4133b23705a31f2d9d747f7fd450591e9f6955..116d5220a1aacbf383dea59c5cf760384e9c6bb4 100644
--- a/content/browser/renderer_host/delegated_frame_host.h
+++ b/content/browser/renderer_host/delegated_frame_host.h
@@ -48,7 +48,7 @@ namespace content {
class DelegatedFrameHost;
class RenderWidgetHostViewFrameSubscriber;
-class ResizeLock;
+class CompositorResizeLock;
// The DelegatedFrameHostClient is the interface from the DelegatedFrameHost,
// which manages delegated frames, and the ui::Compositor being used to
@@ -66,8 +66,8 @@ class CONTENT_EXPORT DelegatedFrameHostClient {
virtual gfx::Size DelegatedFrameHostDesiredSizeInDIP() const = 0;
virtual bool DelegatedFrameCanCreateResizeLock() const = 0;
- virtual std::unique_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock(
- bool defer_compositor_lock) = 0;
+ virtual std::unique_ptr<CompositorResizeLock>
+ DelegatedFrameHostCreateResizeLock() = 0;
virtual void DelegatedFrameHostResizeLockWasReleased() = 0;
virtual void DelegatedFrameHostSendReclaimCompositorResources(
@@ -299,13 +299,13 @@ class CONTENT_EXPORT DelegatedFrameHost
// size. It keeps track of the size we expect from the renderer, and locks the
// compositor, as well as the UI for a short time to give a chance to the
// renderer of producing a frame of the right size.
- std::unique_ptr<ResizeLock> resize_lock_;
+ std::unique_ptr<CompositorResizeLock> resize_lock_;
// Keeps track of the current frame size.
gfx::Size current_frame_size_in_dip_;
// This lock is for waiting for a front surface to become available to draw.
- scoped_refptr<ui::CompositorLock> released_front_lock_;
+ std::unique_ptr<ui::CompositorLock> released_front_lock_;
enum CanLockCompositorState {
YES_CAN_LOCK,

Powered by Google App Engine
This is Rietveld 408576698