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 f41584ab8f90a78d919eb50836e677897096ad45..afe7af2e9e518e6623c90c9c38ca4add30c08f4c 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/gpu_switches.h" |
#include "gpu/command_buffer/service/mailbox_manager_impl.h" |
#include "gpu/command_buffer/service/memory_tracking.h" |
+#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/shader_manager.h" |
@@ -294,6 +295,8 @@ bool ContextGroup::Initialize( |
feature_info_->workarounds().max_vertex_uniform_vectors)); |
} |
+ path_manager_.reset(new PathManager()); |
+ |
program_manager_.reset(new ProgramManager( |
program_cache_, max_varying_vectors_)); |
@@ -365,6 +368,11 @@ void ContextGroup::Destroy(GLES2Decoder* decoder, bool have_context) { |
texture_manager_.reset(); |
} |
+ if (path_manager_ != NULL) { |
+ path_manager_->Destroy(have_context); |
+ path_manager_.reset(); |
+ } |
+ |
if (program_manager_ != NULL) { |
program_manager_->Destroy(have_context); |
program_manager_.reset(); |