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

Side by Side Diff: cc/thread_proxy.cc

Issue 11748031: cc: remove loseOutputSurface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « cc/thread_proxy.h ('k') | webkit/compositor_bindings/web_layer_tree_view_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #include "cc/thread_proxy.h" 5 #include "cc/thread_proxy.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "cc/delay_based_time_source.h" 9 #include "cc/delay_based_time_source.h"
10 #include "cc/draw_quad.h" 10 #include "cc/draw_quad.h"
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 completion.wait(); 257 completion.wait();
258 } 258 }
259 259
260 const RendererCapabilities& ThreadProxy::rendererCapabilities() const 260 const RendererCapabilities& ThreadProxy::rendererCapabilities() const
261 { 261 {
262 DCHECK(m_rendererInitialized); 262 DCHECK(m_rendererInitialized);
263 return m_RendererCapabilitiesMainThreadCopy; 263 return m_RendererCapabilitiesMainThreadCopy;
264 } 264 }
265 265
266 void ThreadProxy::loseOutputSurface()
267 {
268 Proxy::implThread()->postTask(base::Bind(&ThreadProxy::didLoseOutputSurfaceO nImplThread, m_implThreadWeakPtr));
269 }
270
271 void ThreadProxy::setNeedsAnimate() 266 void ThreadProxy::setNeedsAnimate()
272 { 267 {
273 DCHECK(isMainThread()); 268 DCHECK(isMainThread());
274 if (m_animateRequested) 269 if (m_animateRequested)
275 return; 270 return;
276 271
277 TRACE_EVENT0("cc", "ThreadProxy::setNeedsAnimate"); 272 TRACE_EVENT0("cc", "ThreadProxy::setNeedsAnimate");
278 m_animateRequested = true; 273 m_animateRequested = true;
279 274
280 if (m_commitRequestSentToImplThread) 275 if (m_commitRequestSentToImplThread)
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 } 1008 }
1014 1009
1015 void ThreadProxy::commitPendingOnImplThreadForTesting(CommitPendingRequest* requ est) 1010 void ThreadProxy::commitPendingOnImplThreadForTesting(CommitPendingRequest* requ est)
1016 { 1011 {
1017 DCHECK(isImplThread()); 1012 DCHECK(isImplThread());
1018 request->commitPending = m_schedulerOnImplThread->commitPending(); 1013 request->commitPending = m_schedulerOnImplThread->commitPending();
1019 request->completion.signal(); 1014 request->completion.signal();
1020 } 1015 }
1021 1016
1022 } // namespace cc 1017 } // namespace cc
OLDNEW
« no previous file with comments | « cc/thread_proxy.h ('k') | webkit/compositor_bindings/web_layer_tree_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698