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

Side by Side Diff: gpu/command_buffer/client/gles2_trace_implementation.cc

Issue 1160863007: DCHECK if shader compilation fails that it's due to context loss. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: glhelperlost: gles2interface? Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/command_buffer/client/gles2_trace_implementation.h" 5 #include "gpu/command_buffer/client/gles2_trace_implementation.h"
6 #include "gpu/command_buffer/common/trace_event.h" 6 #include "gpu/command_buffer/common/trace_event.h"
7 7
8 namespace gpu { 8 namespace gpu {
9 namespace gles2 { 9 namespace gles2 {
10 10
11 GLES2TraceImplementation::GLES2TraceImplementation(GLES2Interface* gl) 11 GLES2TraceImplementation::GLES2TraceImplementation(GLES2Interface* gl)
12 : gl_(gl) { 12 : gl_(gl) {
13 } 13 }
14 14
15 GLES2TraceImplementation::~GLES2TraceImplementation() { 15 GLES2TraceImplementation::~GLES2TraceImplementation() {
16 } 16 }
17 17
18 // Include the auto-generated part of this file. We split this because it means 18 // Include the auto-generated part of this file. We split this because it means
19 // we can easily edit the non-auto generated parts right here in this file 19 // we can easily edit the non-auto generated parts right here in this file
20 // instead of having to edit some template or the code generator. 20 // instead of having to edit some template or the code generator.
21 #include "gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h" 21 #include "gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h"
22 22
23 GLboolean GLES2TraceImplementation::IsContextLost() {
24 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsContextLost");
25 return gl_->IsContextLost();
26 }
27
23 } // namespace gles2 28 } // namespace gles2
24 } // namespace gpu 29 } // namespace gpu
25 30
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698