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

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

Issue 2629633003: Refactor GL bindings so there is no global GLApi or DriverGL. (Closed)
Patch Set: Created 3 years, 11 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
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 a78799d7e3a458f10b1286e75eb0ac114fec5f05..8be715b993a4bd52ec95d8e3f4039a2c4b3d10de 100644
--- a/gpu/command_buffer/service/context_group.cc
+++ b/gpu/command_buffer/service/context_group.cc
@@ -553,9 +553,11 @@ void ContextGroup::Destroy(GLES2Decoder* decoder, bool have_context) {
memory_tracker_ = NULL;
- passthrough_resources_->Destroy(have_context);
- passthrough_resources_.reset();
- ReportProgress();
+ if (passthrough_resources_ != nullptr) {
jbauman 2017/01/18 21:32:09 if (passthrough__resources_) {
Geoff Lang 2017/01/19 15:40:06 Done.
+ passthrough_resources_->Destroy(have_context);
+ passthrough_resources_.reset();
+ ReportProgress();
+ }
}
uint32_t ContextGroup::GetMemRepresented() const {
« no previous file with comments | « no previous file | gpu/command_buffer/service/gl_context_mock.h » ('j') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698