| 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_;
|
|
|