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

Unified Diff: gpu/command_buffer/service/context_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
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_ids_autogen.h ('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 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);
};
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_ids_autogen.h ('k') | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698