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

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

Issue 1498033003: Implement SamplerManager in the command buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unnessecary state initialization Created 5 years 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_state.h » ('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 cdda09f4adac7d81d58be85134a2eaeface2c890..b90177c9c12fb43fe290e9357e8a173ea941a2ff 100644
--- a/gpu/command_buffer/service/context_group.cc
+++ b/gpu/command_buffer/service/context_group.cc
@@ -16,6 +16,7 @@
#include "gpu/command_buffer/service/path_manager.h"
#include "gpu/command_buffer/service/program_manager.h"
#include "gpu/command_buffer/service/renderbuffer_manager.h"
+#include "gpu/command_buffer/service/sampler_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"
@@ -155,6 +156,7 @@ bool ContextGroup::Initialize(GLES2Decoder* decoder,
memory_tracker_.get(), max_renderbuffer_size, max_samples,
feature_info_.get()));
shader_manager_.reset(new ShaderManager());
+ sampler_manager_.reset(new SamplerManager(feature_info_.get()));
valuebuffer_manager_.reset(
new ValuebufferManager(subscription_ref_set_.get(),
pending_valuebuffer_state_.get()));
@@ -378,6 +380,11 @@ void ContextGroup::Destroy(GLES2Decoder* decoder, bool have_context) {
shader_manager_.reset();
}
+ if (sampler_manager_ != NULL) {
+ sampler_manager_->Destroy(have_context);
+ sampler_manager_.reset();
+ }
+
if (valuebuffer_manager_ != NULL) {
valuebuffer_manager_->Destroy();
valuebuffer_manager_.reset();
« no previous file with comments | « gpu/command_buffer/service/context_group.h ('k') | gpu/command_buffer/service/context_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698