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

Side by Side Diff: cc/trees/layer_tree_host.h

Issue 2324273002: Remove external begin frame source parameter and settings (Closed)
Patch Set: Rebase Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CC_TREES_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // See swap_promise.h for how to use SwapPromise. 76 // See swap_promise.h for how to use SwapPromise.
77 virtual void QueueSwapPromise(std::unique_ptr<SwapPromise> swap_promise) = 0; 77 virtual void QueueSwapPromise(std::unique_ptr<SwapPromise> swap_promise) = 0;
78 78
79 // Returns the SwapPromiseManager used to create SwapPromiseMonitors for this 79 // Returns the SwapPromiseManager used to create SwapPromiseMonitors for this
80 // host. 80 // host.
81 virtual SwapPromiseManager* GetSwapPromiseManager() = 0; 81 virtual SwapPromiseManager* GetSwapPromiseManager() = 0;
82 82
83 // Sets whether the content is suitable to use Gpu Rasterization. 83 // Sets whether the content is suitable to use Gpu Rasterization.
84 virtual void SetHasGpuRasterizationTrigger(bool has_trigger) = 0; 84 virtual void SetHasGpuRasterizationTrigger(bool has_trigger) = 0;
85 85
86 // Visibility and CompositorFrameSink -------------------------------
danakj 2016/09/20 18:19:21 Did you mean to?
enne (OOO) 2016/09/20 18:34:26 Ah, the rebasing on this patch was super rough. T
87
88 virtual void SetVisible(bool visible) = 0; 86 virtual void SetVisible(bool visible) = 0;
89 virtual bool IsVisible() const = 0; 87 virtual bool IsVisible() const = 0;
90 88
91 // Called in response to an CompositorFrameSink request made to the client 89 // Called in response to an CompositorFrameSink request made to the client
92 // using LayerTreeHostClient::RequestNewCompositorFrameSink. The client will 90 // using LayerTreeHostClient::RequestNewCompositorFrameSink. The client will
93 // be informed of the CompositorFrameSink initialization status using 91 // be informed of the CompositorFrameSink initialization status using
94 // DidInitializaCompositorFrameSink or DidFailToInitializeCompositorFrameSink. 92 // DidInitializaCompositorFrameSink or DidFailToInitializeCompositorFrameSink.
95 // The request is completed when the host successfully initializes an 93 // The request is completed when the host successfully initializes an
96 // CompositorFrameSink. 94 // CompositorFrameSink.
97 virtual void SetCompositorFrameSink( 95 virtual void SetCompositorFrameSink(
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 virtual void SetNextCommitWaitsForActivation() = 0; 195 virtual void SetNextCommitWaitsForActivation() = 0;
198 196
199 // The LayerTreeHost tracks whether the content is suitable for Gpu raster. 197 // The LayerTreeHost tracks whether the content is suitable for Gpu raster.
200 // Calling this will reset it back to not suitable state. 198 // Calling this will reset it back to not suitable state.
201 virtual void ResetGpuRasterizationTracking() = 0; 199 virtual void ResetGpuRasterizationTracking() = 0;
202 }; 200 };
203 201
204 } // namespace cc 202 } // namespace cc
205 203
206 #endif // CC_TREES_LAYER_TREE_HOST_H_ 204 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698