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

Unified Diff: content/common/gpu/client/context_provider_command_buffer.cc

Issue 2336043004: Android: Free GLHelper context ashmem when it makes sense (Closed)
Patch Set: address comments Created 4 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: content/common/gpu/client/context_provider_command_buffer.cc
diff --git a/content/common/gpu/client/context_provider_command_buffer.cc b/content/common/gpu/client/context_provider_command_buffer.cc
index 0a6770415584f897786603e69dc4788471fb0738..4308280e3151190f271685bba9b3893d7945d94d 100644
--- a/content/common/gpu/client/context_provider_command_buffer.cc
+++ b/content/common/gpu/client/context_provider_command_buffer.cc
@@ -119,6 +119,11 @@ uint32_t ContextProviderCommandBuffer::GetCopyTextureInternalFormat() {
return GL_RGB;
}
+void ContextProviderCommandBuffer::FreeUnusedSharedMemory() {
+ if (bind_succeeded_)
+ gles2_impl_->FreeUnusedSharedMemory();
+}
+
bool ContextProviderCommandBuffer::BindToCurrentThread() {
// This is called on the thread the context will be used.
DCHECK(context_thread_checker_.CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698