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

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

Issue 1268383003: Sync compositor: Ignore command buffer memory callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: content/common/gpu/client/context_provider_command_buffer.h
diff --git a/content/common/gpu/client/context_provider_command_buffer.h b/content/common/gpu/client/context_provider_command_buffer.h
index 1e0d23f82b915609416ce8473e6d4f83d6fd24bb..1c5e9f91deafc1df6371e7b40b8b32300afe90a7 100644
--- a/content/common/gpu/client/context_provider_command_buffer.h
+++ b/content/common/gpu/client/context_provider_command_buffer.h
@@ -55,7 +55,8 @@ class CONTENT_EXPORT ContextProviderCommandBuffer
protected:
ContextProviderCommandBuffer(
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d,
- CommandBufferContextType type);
+ CommandBufferContextType type,
+ bool enable_memory_allocation_callback);
~ContextProviderCommandBuffer() override;
void OnLostContext();
@@ -76,6 +77,7 @@ class CONTENT_EXPORT ContextProviderCommandBuffer
LostContextCallback lost_context_callback_;
MemoryPolicyChangedCallback memory_policy_changed_callback_;
+ const bool enable_memory_allocation_callback_;
base::Lock main_thread_lock_;
bool destroyed_;

Powered by Google App Engine
This is Rietveld 408576698