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 c2ebbfb2900dc34e8c55760771f436996a94927f..84102f7be92d0a447b679d718b1f036d89a8c2fb 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 { |
@@ -67,7 +68,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, |
+ const scoped_refptr<ServiceDiscardableManager>& discardable_manager); |
// This should only be called by GLES2Decoder. This must be paired with a |
// call to destroy if it succeeds. |
@@ -204,6 +206,10 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> { |
return sampler_manager_.get(); |
} |
+ ServiceDiscardableManager* discardable_manager() const { |
+ return discardable_manager_.get(); |
+ } |
+ |
uint32_t GetMemRepresented() const; |
// Loses all the context associated with this group. |
@@ -312,6 +318,8 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> { |
GpuFeatureInfo gpu_feature_info_; |
+ const scoped_refptr<ServiceDiscardableManager> discardable_manager_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ContextGroup); |
}; |