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

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

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/context_group.h ('k') | gpu/command_buffer/service/context_group_unittest.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.cc
diff --git a/gpu/command_buffer/service/context_group.cc b/gpu/command_buffer/service/context_group.cc
index 562f2e2e3f2a1028616808eb58cfbfb26d89324e..0a622eb9a33a80c43ddaa98ebb125ea0bc451402 100644
--- a/gpu/command_buffer/service/context_group.cc
+++ b/gpu/command_buffer/service/context_group.cc
@@ -22,6 +22,7 @@
#include "gpu/command_buffer/service/progress_reporter.h"
#include "gpu/command_buffer/service/renderbuffer_manager.h"
#include "gpu/command_buffer/service/sampler_manager.h"
+#include "gpu/command_buffer/service/service_discardable_manager.h"
#include "gpu/command_buffer/service/shader_manager.h"
#include "gpu/command_buffer/service/texture_manager.h"
#include "gpu/command_buffer/service/transfer_buffer_manager.h"
@@ -70,7 +71,8 @@ ContextGroup::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)
: gpu_preferences_(gpu_preferences),
mailbox_manager_(mailbox_manager),
memory_tracker_(memory_tracker),
@@ -110,7 +112,9 @@ ContextGroup::ContextGroup(
image_factory_(image_factory),
passthrough_resources_(new PassthroughResources),
progress_reporter_(progress_reporter),
- gpu_feature_info_(gpu_feature_info) {
+ gpu_feature_info_(gpu_feature_info),
+ discardable_manager_(discardable_manager) {
+ DCHECK(discardable_manager);
DCHECK(feature_info_);
if (!mailbox_manager_.get())
mailbox_manager_ = new MailboxManagerImpl;
@@ -311,7 +315,7 @@ bool ContextGroup::Initialize(GLES2Decoder* decoder,
memory_tracker_.get(), feature_info_.get(), max_texture_size,
max_cube_map_texture_size, max_rectangle_texture_size,
max_3d_texture_size, max_array_texture_layers, bind_generates_resource_,
- progress_reporter_));
+ progress_reporter_, discardable_manager_));
const GLint kMinTextureImageUnits = 8;
const GLint kMinVertexTextureImageUnits = 0;
« no previous file with comments | « gpu/command_buffer/service/context_group.h ('k') | gpu/command_buffer/service/context_group_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698