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

Unified Diff: gpu/ipc/in_process_command_buffer.h

Issue 2814583002: Service/ClientDiscardableManager (Closed)
Patch Set: Feedback 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..da1af5e1f1e8f328ecd01dffe47c2ee186604ac1 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;
@@ -198,6 +199,7 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
scoped_refptr<gl::GLShareGroup> share_group();
scoped_refptr<gles2::MailboxManager> mailbox_manager();
gpu::gles2::ProgramCache* program_cache();
+ ServiceDiscardableManager* discardable_manager();
virtual bool BlockThreadOnWaitSyncToken() const = 0;
protected:
@@ -208,6 +210,7 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
std::unique_ptr<gpu::gles2::ProgramCache> program_cache_;
// No-op default initialization is used in in-process mode.
GpuProcessActivityFlags activity_flags_;
+ std::unique_ptr<ServiceDiscardableManager> discardable_manager_;
};
private:

Powered by Google App Engine
This is Rietveld 408576698