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

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

Issue 2773433003: Fix CompositorResizeLock to do something. (Closed)
Patch Set: resizelock: . Created 3 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BROWSER_COMPOSITOR_VIEW_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // Indicate that the recyclable compositor should be destroyed, and no future 97 // Indicate that the recyclable compositor should be destroyed, and no future
98 // compositors should be recycled. 98 // compositors should be recycled.
99 static void DisableRecyclingForShutdown(); 99 static void DisableRecyclingForShutdown();
100 100
101 // DelegatedFrameHostClient implementation. 101 // DelegatedFrameHostClient implementation.
102 ui::Layer* DelegatedFrameHostGetLayer() const override; 102 ui::Layer* DelegatedFrameHostGetLayer() const override;
103 bool DelegatedFrameHostIsVisible() const override; 103 bool DelegatedFrameHostIsVisible() const override;
104 SkColor DelegatedFrameHostGetGutterColor(SkColor color) const override; 104 SkColor DelegatedFrameHostGetGutterColor(SkColor color) const override;
105 gfx::Size DelegatedFrameHostDesiredSizeInDIP() const override; 105 gfx::Size DelegatedFrameHostDesiredSizeInDIP() const override;
106 bool DelegatedFrameCanCreateResizeLock() const override; 106 bool DelegatedFrameCanCreateResizeLock() const override;
107 std::unique_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock( 107 std::unique_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock() override;
108 bool defer_compositor_lock) override;
109 void DelegatedFrameHostResizeLockWasReleased() override; 108 void DelegatedFrameHostResizeLockWasReleased() override;
110 void DelegatedFrameHostSendReclaimCompositorResources( 109 void DelegatedFrameHostSendReclaimCompositorResources(
111 int compositor_frame_sink_id, 110 int compositor_frame_sink_id,
112 bool is_swap_ack, 111 bool is_swap_ack,
113 const cc::ReturnedResourceArray& resources) override; 112 const cc::ReturnedResourceArray& resources) override;
114 void SetBeginFrameSource(cc::BeginFrameSource* source) override; 113 void SetBeginFrameSource(cc::BeginFrameSource* source) override;
115 bool IsAutoResizeEnabled() const override; 114 bool IsAutoResizeEnabled() const override;
116 115
117 // cc::BeginFrameObserver implementation. 116 // cc::BeginFrameObserver implementation.
118 void OnBeginFrame(const cc::BeginFrameArgs& args) override; 117 void OnBeginFrame(const cc::BeginFrameArgs& args) override;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 cc::BeginFrameSource* begin_frame_source_ = nullptr; 181 cc::BeginFrameSource* begin_frame_source_ = nullptr;
183 cc::BeginFrameArgs last_begin_frame_args_; 182 cc::BeginFrameArgs last_begin_frame_args_;
184 bool needs_begin_frames_ = false; 183 bool needs_begin_frames_ = false;
185 184
186 base::WeakPtrFactory<BrowserCompositorMac> weak_factory_; 185 base::WeakPtrFactory<BrowserCompositorMac> weak_factory_;
187 }; 186 };
188 187
189 } // namespace content 188 } // namespace content
190 189
191 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ 190 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698