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

Unified Diff: gpu/command_buffer/service/context_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
« no previous file with comments | « gpu/command_buffer/service/BUILD.gn ('k') | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/context_group.h
diff --git a/gpu/command_buffer/service/context_group.h b/gpu/command_buffer/service/context_group.h
index 9bda4cb895290bf089d6f910132af98f22bbc105..bc223031d94876e3af9fa8f089edfbce724e1e20 100644
--- a/gpu/command_buffer/service/context_group.h
+++ b/gpu/command_buffer/service/context_group.h
@@ -29,6 +29,7 @@ namespace gpu {
class ImageFactory;
struct GpuPreferences;
class TransferBufferManager;
+class ServiceDiscardableManager;
namespace gles2 {
@@ -66,7 +67,8 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> {
bool bind_generates_resource,
gpu::ImageFactory* image_factory,
ProgressReporter* progress_reporter,
- const GpuFeatureInfo& gpu_feature_info);
+ const GpuFeatureInfo& gpu_feature_info,
+ ServiceDiscardableManager* discardable_manager);
// This should only be called by GLES2Decoder. This must be paired with a
// call to destroy if it succeeds.
@@ -199,6 +201,10 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> {
return sampler_manager_.get();
}
+ ServiceDiscardableManager* discardable_manager() const {
+ return discardable_manager_;
+ }
+
uint32_t GetMemRepresented() const;
// Loses all the context associated with this group.
@@ -305,6 +311,8 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> {
GpuFeatureInfo gpu_feature_info_;
+ ServiceDiscardableManager* discardable_manager_;
+
DISALLOW_COPY_AND_ASSIGN(ContextGroup);
};
« no previous file with comments | « gpu/command_buffer/service/BUILD.gn ('k') | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698