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

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

Issue 2449993005: Remove GLImage::Destroy(). (Closed)
Patch Set: One more Destroy() call on Mac. Created 4 years, 2 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 | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index bd7bed5278f045b9e79c7fbbed2eba291918d3fc..358707396d0f5d6775a14bdd0b4708f6827e188b 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -2760,7 +2760,6 @@ void BackTexture::DestroyNativeGpuMemoryBuffer(bool have_context) {
decoder_->state_.GetErrorState());
image_->ReleaseTexImage(Target());
- image_->Destroy(have_context);
decoder_->texture_manager()->SetLevelImage(texture_ref_.get(), Target(), 0,
nullptr, Texture::UNBOUND);
@@ -4746,10 +4745,7 @@ void GLES2DecoderImpl::Destroy(bool have_context) {
transform_feedback_manager_.reset();
}
- if (image_manager_.get()) {
- image_manager_->Destroy(have_context);
- image_manager_.reset();
- }
+ image_manager_.reset();
offscreen_target_frame_buffer_.reset();
offscreen_target_color_texture_.reset();
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698