OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "gpu/command_buffer/service/gl_utils.h" |
| 6 |
| 7 #include "base/metrics/histogram.h" |
| 8 |
| 9 namespace gpu { |
| 10 namespace gles2 { |
| 11 |
| 12 std::vector<int> GetAllGLErrors() { |
| 13 int gl_errors[] = { |
| 14 GL_NO_ERROR, |
| 15 GL_INVALID_ENUM, |
| 16 GL_INVALID_VALUE, |
| 17 GL_INVALID_OPERATION, |
| 18 GL_INVALID_FRAMEBUFFER_OPERATION, |
| 19 GL_OUT_OF_MEMORY, |
| 20 }; |
| 21 return base::CustomHistogram::ArrayToCustomRanges(gl_errors, |
| 22 arraysize(gl_errors)); |
| 23 } |
| 24 |
| 25 } // namespace gles2 |
| 26 } // namespace gpu |
OLD | NEW |