Commit 8ef65988 authored by dyen's avatar dyen Committed by Commit bot

Only destroy GPUTracer if the pointer is not empty.

R=vmiura@chromium.org
BUG=471049, 467202

Review URL: https://codereview.chromium.org/1033093002

Cr-Commit-Position: refs/heads/master@{#322498}
parent 7018ce63
...@@ -3756,8 +3756,10 @@ void GLES2DecoderImpl::Destroy(bool have_context) { ...@@ -3756,8 +3756,10 @@ void GLES2DecoderImpl::Destroy(bool have_context) {
async_pixel_transfer_manager_.reset(); async_pixel_transfer_manager_.reset();
// Destroy the GPU Tracer which may own some in process GPU Timings. // Destroy the GPU Tracer which may own some in process GPU Timings.
gpu_tracer_->Destroy(have_context); if (gpu_tracer_) {
gpu_tracer_ = NULL; gpu_tracer_->Destroy(have_context);
gpu_tracer_.reset();
}
if (group_.get()) { if (group_.get()) {
framebuffer_manager()->RemoveObserver(this); framebuffer_manager()->RemoveObserver(this);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment