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

Unified Diff: cc/trees/single_thread_proxy.cc

Issue 1287043002: cc: Setup API to release OutputSurface from LTHClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update test. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/single_thread_proxy.cc
diff --git a/cc/trees/single_thread_proxy.cc b/cc/trees/single_thread_proxy.cc
index 8193758812327d2bd2408cdedd8c5fa6a9335665..e0d9d967fd733c6d8bea35325e37f2771da71c0d 100644
--- a/cc/trees/single_thread_proxy.cc
+++ b/cc/trees/single_thread_proxy.cc
@@ -149,6 +149,12 @@ void SingleThreadProxy::RequestNewOutputSurface() {
layer_tree_host_->RequestNewOutputSurface();
}
+scoped_ptr<OutputSurface> SingleThreadProxy::ReleaseOutputSurface() {
+ if (scheduler_on_impl_thread_)
+ scheduler_on_impl_thread_->DidLoseOutputSurface();
danakj 2015/09/17 18:43:55 Can you DCHECK that LTH knows the OS is lost, and
+ return layer_tree_host_impl_->ReleaseOutputSurface();
+}
+
void SingleThreadProxy::SetOutputSurface(
scoped_ptr<OutputSurface> output_surface) {
DCHECK(Proxy::IsMainThread());

Powered by Google App Engine
This is Rietveld 408576698