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

Unified Diff: cc/thread_proxy.cc

Issue 11280268: Merge 170403 - Use a lock to deal with concurrent access to the m_evictedBackings (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1312/src
Patch Set: Created 8 years, 1 month 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/thread_proxy.h ('k') | cc/tiled_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/thread_proxy.cc
diff --git a/cc/thread_proxy.cc b/cc/thread_proxy.cc
index 023aad0f92d9618d1240b29109c6200e7ae3e68c..aa734bffad6e4c2eeda58c4a9b086299fcc67c84 100644
--- a/cc/thread_proxy.cc
+++ b/cc/thread_proxy.cc
@@ -506,8 +506,6 @@ void ThreadProxy::scheduledActionBeginFrame()
m_pendingBeginFrameRequest->scrollInfo = m_layerTreeHostImpl->processScrollDeltas();
m_pendingBeginFrameRequest->implTransform = m_layerTreeHostImpl->implTransform();
m_pendingBeginFrameRequest->memoryAllocationLimitBytes = m_layerTreeHostImpl->memoryAllocationLimitBytes();
- if (m_layerTreeHost->contentsTextureManager())
- m_layerTreeHost->contentsTextureManager()->getEvictedBackings(m_pendingBeginFrameRequest->evictedContentsTexturesBackings);
m_mainThreadProxy->postTask(createThreadTask(this, &ThreadProxy::beginFrame));
@@ -568,6 +566,10 @@ void ThreadProxy::beginFrame()
Proxy::implThread()->postTask(createThreadTask(this, &ThreadProxy::beginFrameAbortedOnImplThread));
return;
}
+ // Unlink any backings that the impl thread has evicted, so that we know to re-paint
+ // them in updateLayers.
+ if (m_layerTreeHost->contentsTextureManager())
+ m_layerTreeHost->contentsTextureManager()->unlinkAndClearEvictedBackings();
m_layerTreeHost->willBeginFrame();
@@ -586,8 +588,6 @@ void ThreadProxy::beginFrame()
return;
}
- m_layerTreeHost->contentsTextureManager()->unlinkEvictedBackings(request->evictedContentsTexturesBackings);
-
scoped_ptr<ResourceUpdateQueue> queue = make_scoped_ptr(new ResourceUpdateQueue);
m_layerTreeHost->updateLayers(*(queue.get()), request->memoryAllocationLimitBytes);
« no previous file with comments | « cc/thread_proxy.h ('k') | cc/tiled_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698