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

Unified Diff: cc/trees/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: unit test Created 5 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
Index: cc/trees/thread_proxy.cc
diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc
index a528e3eb3d1b5c7905a845ce2a7a82218a8ef122..33339119e52f7a3f7f04f938e0649d0262af1ba1 100644
--- a/cc/trees/thread_proxy.cc
+++ b/cc/trees/thread_proxy.cc
@@ -219,6 +219,10 @@ void ThreadProxy::SetOutputSurface(scoped_ptr<OutputSurface> output_surface) {
impl_thread_weak_ptr_, base::Passed(&output_surface)));
}
+scoped_ptr<OutputSurface> ThreadProxy::GetOutputSurface() {
no sievers 2015/09/10 00:00:22 impl().scheduler->DidLoseOutputSurface();
no sievers 2015/09/10 01:26:24 You'll have to post this to the impl thread and th
sohanjg 2015/09/10 15:07:23 You mean both DidLoseOutputSurface, and Get/Releas
+ return impl().layer_tree_host_impl->GetOutputSurface();
+}
+
void ThreadProxy::DidInitializeOutputSurface(
bool success,
const RendererCapabilities& capabilities) {

Powered by Google App Engine
This is Rietveld 408576698