OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/service/renderbuffer_manager.h" | 5 #include "gpu/command_buffer/service/renderbuffer_manager.h" |
6 #include "base/debug/trace_event.h" | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "base/trace_event/trace_event.h" |
9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
10 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 11 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
11 #include "gpu/command_buffer/service/memory_tracking.h" | 12 #include "gpu/command_buffer/service/memory_tracking.h" |
12 #include "ui/gl/gl_implementation.h" | 13 #include "ui/gl/gl_implementation.h" |
13 | 14 |
14 namespace gpu { | 15 namespace gpu { |
15 namespace gles2 { | 16 namespace gles2 { |
16 | 17 |
17 // This should contain everything to uniquely identify a Renderbuffer. | 18 // This should contain everything to uniquely identify a Renderbuffer. |
18 static const char RenderbufferTag[] = "|Renderbuffer|"; | 19 static const char RenderbufferTag[] = "|Renderbuffer|"; |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 if (impl_format == GL_DEPTH_COMPONENT16 && depth24_supported_) | 225 if (impl_format == GL_DEPTH_COMPONENT16 && depth24_supported_) |
225 return GL_DEPTH_COMPONENT24; | 226 return GL_DEPTH_COMPONENT24; |
226 } | 227 } |
227 return impl_format; | 228 return impl_format; |
228 } | 229 } |
229 | 230 |
230 } // namespace gles2 | 231 } // namespace gles2 |
231 } // namespace gpu | 232 } // namespace gpu |
232 | 233 |
233 | 234 |
OLD | NEW |