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

Unified Diff: gpu/command_buffer/service/context_group.h

Issue 2814583002: Service/ClientDiscardableManager (Closed)
Patch Set: Feedback 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
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..fc2ef9fdd40d4256ca6d4d8080d13a699dc51a44 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,
+ 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_;
+ }
+
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_;
+ ServiceDiscardableManager* discardable_manager_;
+
DISALLOW_COPY_AND_ASSIGN(ContextGroup);
};

Powered by Google App Engine
This is Rietveld 408576698