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 "webkit/common/gpu/grcontext_for_webgraphicscontext3d.h" | 5 #include "webkit/common/gpu/grcontext_for_webgraphicscontext3d.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | |
8 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/trace_event/trace_event.h" |
9 #include "gpu/blink/webgraphicscontext3d_impl.h" | 9 #include "gpu/blink/webgraphicscontext3d_impl.h" |
10 #include "gpu/command_buffer/client/gles2_lib.h" | 10 #include "gpu/command_buffer/client/gles2_lib.h" |
11 #include "third_party/skia/include/gpu/GrContext.h" | 11 #include "third_party/skia/include/gpu/GrContext.h" |
12 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" | 12 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" |
13 | 13 |
14 using gpu_blink::WebGraphicsContext3DImpl; | 14 using gpu_blink::WebGraphicsContext3DImpl; |
15 | 15 |
16 namespace webkit { | 16 namespace webkit { |
17 namespace gpu { | 17 namespace gpu { |
18 | 18 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 void GrContextForWebGraphicsContext3D::FreeGpuResources() { | 83 void GrContextForWebGraphicsContext3D::FreeGpuResources() { |
84 if (gr_context_) { | 84 if (gr_context_) { |
85 TRACE_EVENT_INSTANT0("gpu", "GrContext::freeGpuResources", \ | 85 TRACE_EVENT_INSTANT0("gpu", "GrContext::freeGpuResources", \ |
86 TRACE_EVENT_SCOPE_THREAD); | 86 TRACE_EVENT_SCOPE_THREAD); |
87 gr_context_->freeGpuResources(); | 87 gr_context_->freeGpuResources(); |
88 } | 88 } |
89 } | 89 } |
90 | 90 |
91 } // namespace gpu | 91 } // namespace gpu |
92 } // namespace webkit | 92 } // namespace webkit |
OLD | NEW |