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

Unified Diff: gpu/ipc/in_process_command_buffer.h

Issue 2814583002: Service/ClientDiscardableManager (Closed)
Patch Set: feeedback Created 3 years, 7 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: gpu/ipc/in_process_command_buffer.h
diff --git a/gpu/ipc/in_process_command_buffer.h b/gpu/ipc/in_process_command_buffer.h
index 33fe5526db9574d2f67a2e0f1dc65d116f407ef9..ac03be57f2c76e95e2259af2459fc2c20594d98b 100644
--- a/gpu/ipc/in_process_command_buffer.h
+++ b/gpu/ipc/in_process_command_buffer.h
@@ -52,6 +52,7 @@ class Size;
namespace gpu {
+class ServiceDiscardableManager;
class SyncPointClientState;
class SyncPointOrderData;
class SyncPointManager;
@@ -316,6 +317,9 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
base::WaitableEvent flush_event_;
scoped_refptr<Service> service_;
+ // Must outlive |context_group_|.
+ std::unique_ptr<ServiceDiscardableManager> discardable_manager_;
+
// The group of contexts that share namespaces with this context.
scoped_refptr<gles2::ContextGroup> context_group_;

Powered by Google App Engine
This is Rietveld 408576698