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

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: Android: Free GLHelper context ashmem when it makes sense 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 45c890854e095360e825875d8d6e93fb2f3c3847..b10ad976b45449d6b503ebf96beb4fdefa956428 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() {
danakj 2016/09/13 22:44:58 Hm, idk about adding another way to free memory. W
+ 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