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

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

Issue 2317363005: Add basic GL functionality to the passthrough command buffer. (Closed)
Patch Set: Handle bind_generates_resource Created 4 years, 3 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/gl_utils.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 2d9d9d14726a2e8be731d3bf1b5d6c61678a090a..eaaa0142da9c1ea236147c97cc18a5edcdbafce9 100644
--- a/gpu/command_buffer/service/context_group.cc
+++ b/gpu/command_buffer/service/context_group.cc
@@ -13,6 +13,7 @@
#include "base/command_line.h"
#include "gpu/command_buffer/service/buffer_manager.h"
#include "gpu/command_buffer/service/framebuffer_manager.h"
+#include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h"
#include "gpu/command_buffer/service/gpu_preferences.h"
#include "gpu/command_buffer/service/mailbox_manager_impl.h"
#include "gpu/command_buffer/service/path_manager.h"
@@ -101,7 +102,8 @@ ContextGroup::ContextGroup(
uniform_buffer_offset_alignment_(1u),
program_cache_(NULL),
feature_info_(feature_info),
- image_factory_(image_factory) {
+ image_factory_(image_factory),
+ passthrough_resources_(new PassthroughResources) {
{
DCHECK(feature_info_);
if (!mailbox_manager_.get())
@@ -534,6 +536,9 @@ void ContextGroup::Destroy(GLES2Decoder* decoder, bool have_context) {
}
memory_tracker_ = NULL;
+
+ passthrough_resources_->Destroy(have_context);
+ passthrough_resources_.reset();
}
uint32_t ContextGroup::GetMemRepresented() const {
« no previous file with comments | « gpu/command_buffer/service/context_group.h ('k') | gpu/command_buffer/service/gl_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698