OLD | NEW |
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 |
OLD | NEW |