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

Side by Side Diff: gpu/command_buffer/service/gl_utils.cc

Issue 1563613002: Add GL error usage metrics for glTexImage* APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: local -> uma Created 4 years, 11 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
« no previous file with comments | « gpu/command_buffer/service/gl_utils.h ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gl_utils.h ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698