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 091b69f2385034d354e2f5946dcecabc67d4d2a2..2ec497c82cbe87fd099374cfee91fe98659dd72e 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" |
@@ -147,6 +148,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(); |
@@ -167,6 +172,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_; |