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

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

Issue 2818993002: GL Implementation for GPU Discardable
Patch Set: rebase Created 3 years, 8 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 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_;
« 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