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

Unified Diff: cc/trees/layer_tree_host.h

Issue 2270573002: cc: Get rid of LayerTreeHost::output_surface_lost_ state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renderer-caps
Patch Set: lth-outputsurface-lost: android-build-and-earlyout-sooner Created 4 years, 4 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
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index 200451db7b735c5981982b3676ad48abeb9302fa..8b8802d58a6583968ae10194a1dd5a4b43211119 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -145,7 +145,6 @@ class CC_EXPORT LayerTreeHost {
virtual std::unique_ptr<LayerTreeHostImpl> CreateLayerTreeHostImpl(
LayerTreeHostImplClient* client);
void DidLoseOutputSurface();
- bool output_surface_lost() const { return output_surface_lost_; }
void DidCommitAndDrawFrame() { client_->DidCommitAndDrawFrame(); }
void DidCompleteSwapBuffers() { client_->DidCompleteSwapBuffers(); }
bool UpdateLayers();
@@ -217,8 +216,6 @@ class CC_EXPORT LayerTreeHost {
}
AnimationHost* animation_host() const;
- bool has_output_surface() const { return !!current_output_surface_; }
-
// CreateUIResource creates a resource given a bitmap. The bitmap is
// generated via an interface function, which is called when initializing the
// resource and when the resource has been lost (due to lost context). The
@@ -327,9 +324,6 @@ class CC_EXPORT LayerTreeHost {
std::unique_ptr<Proxy> proxy_for_testing,
std::unique_ptr<BeginFrameSource> external_begin_frame_source);
void InitializePictureCacheForTesting();
- void SetOutputSurfaceLostForTesting(bool is_lost) {
- output_surface_lost_ = is_lost;
- }
void SetTaskRunnerProviderForTesting(
std::unique_ptr<TaskRunnerProvider> task_runner_provider);
@@ -407,7 +401,6 @@ class CC_EXPORT LayerTreeHost {
// |current_output_surface_|.
std::unique_ptr<OutputSurface> new_output_surface_;
std::unique_ptr<OutputSurface> current_output_surface_;
- bool output_surface_lost_;
const LayerTreeSettings settings_;
LayerTreeDebugState debug_state_;
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698