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); |
}; |