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

Unified Diff: gpu/command_buffer/client/share_group.h

Issue 2814583002: Service/ClientDiscardableManager (Closed)
Patch Set: rebase 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/command_buffer/client/share_group.h
diff --git a/gpu/command_buffer/client/share_group.h b/gpu/command_buffer/client/share_group.h
index 08b40f05bc6f03490d8f7016cb2b2269be2aa1fc..fe37ddaff32b23265788c6bd4372122f5fa9fa60 100644
--- a/gpu/command_buffer/client/share_group.h
+++ b/gpu/command_buffer/client/share_group.h
@@ -13,6 +13,7 @@
#include "base/macros.h"
#include "base/synchronization/lock.h"
#include "gles2_impl_export.h"
+#include "gpu/command_buffer/client/client_discardable_manager.h"
#include "gpu/command_buffer/client/ref_counted.h"
#include "gpu/command_buffer/common/gles2_cmd_format.h"
@@ -152,6 +153,10 @@ class GLES2_IMPL_EXPORT ShareGroup
uint64_t TracingGUID() const { return tracing_guid_; }
+ ClientDiscardableManager* discardable_manager() {
+ return &discardable_manager_;
+ }
+
// Mark the ShareGroup as lost when an error occurs on any context in the
// group. This is thread safe as contexts may be on different threads.
void Lose();
@@ -172,6 +177,7 @@ class GLES2_IMPL_EXPORT ShareGroup
std::unique_ptr<RangeIdHandlerInterface>
range_id_handlers_[id_namespaces::kNumRangeIdNamespaces];
std::unique_ptr<ProgramInfoManager> program_info_manager_;
+ ClientDiscardableManager discardable_manager_;
bool bind_generates_resource_;
uint64_t tracing_guid_;
« no previous file with comments | « gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h ('k') | gpu/command_buffer/cmd_buffer_functions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698