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

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

Issue 2539443003: Add UMA to track the duration of CheckFrambufferValid (Closed)
Patch Set: obsolete rather than remove histograms Created 4 years 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 | « no previous file | gpu/command_buffer/service/program_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
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/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 4207 matching lines...) Expand 10 before | Expand all | Expand 10 after
4218 GetBackbufferServiceId()); 4218 GetBackbufferServiceId());
4219 } 4219 }
4220 OnFboChanged(); 4220 OnFboChanged();
4221 } 4221 }
4222 4222
4223 bool GLES2DecoderImpl::CheckFramebufferValid( 4223 bool GLES2DecoderImpl::CheckFramebufferValid(
4224 Framebuffer* framebuffer, 4224 Framebuffer* framebuffer,
4225 GLenum target, 4225 GLenum target,
4226 GLenum gl_error, 4226 GLenum gl_error,
4227 const char* func_name) { 4227 const char* func_name) {
4228 SCOPED_UMA_HISTOGRAM_TIMER("GPU.CheckFramebufferValidDuration");
4229
4228 if (!framebuffer) { 4230 if (!framebuffer) {
4229 if (surfaceless_) 4231 if (surfaceless_)
4230 return false; 4232 return false;
4231 if (backbuffer_needs_clear_bits_) { 4233 if (backbuffer_needs_clear_bits_) {
4232 glClearColor(0, 0, 0, BackBufferAlphaClearColor()); 4234 glClearColor(0, 0, 0, BackBufferAlphaClearColor());
4233 state_.SetDeviceColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); 4235 state_.SetDeviceColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
4234 glClearStencil(0); 4236 glClearStencil(0);
4235 state_.SetDeviceStencilMaskSeparate(GL_FRONT, kDefaultStencilMask); 4237 state_.SetDeviceStencilMaskSeparate(GL_FRONT, kDefaultStencilMask);
4236 state_.SetDeviceStencilMaskSeparate(GL_BACK, kDefaultStencilMask); 4238 state_.SetDeviceStencilMaskSeparate(GL_BACK, kDefaultStencilMask);
4237 glClearDepth(1.0f); 4239 glClearDepth(1.0f);
(...skipping 14627 matching lines...) Expand 10 before | Expand all | Expand 10 after
18865 } 18867 }
18866 18868
18867 // Include the auto-generated part of this file. We split this because it means 18869 // Include the auto-generated part of this file. We split this because it means
18868 // we can easily edit the non-auto generated parts right here in this file 18870 // we can easily edit the non-auto generated parts right here in this file
18869 // instead of having to edit some template or the code generator. 18871 // instead of having to edit some template or the code generator.
18870 #include "base/macros.h" 18872 #include "base/macros.h"
18871 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 18873 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
18872 18874
18873 } // namespace gles2 18875 } // namespace gles2
18874 } // namespace gpu 18876 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/program_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698