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

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

Issue 11659020: gpu: Report time spent performing async texture uploads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
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 <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 2959 matching lines...) Expand 10 before | Expand all | Expand 10 after
2970 TextureManager::TextureInfo* texture = 2970 TextureManager::TextureInfo* texture =
2971 texture_manager()->GetTextureInfo(client_texture_id); 2971 texture_manager()->GetTextureInfo(client_texture_id);
2972 if (texture) { 2972 if (texture) {
2973 *service_texture_id = texture->service_id(); 2973 *service_texture_id = texture->service_id();
2974 return true; 2974 return true;
2975 } 2975 }
2976 return false; 2976 return false;
2977 } 2977 }
2978 2978
2979 uint32 GLES2DecoderImpl::GetTextureUploadCount() { 2979 uint32 GLES2DecoderImpl::GetTextureUploadCount() {
2980 return texture_upload_count_; 2980 return texture_upload_count_ +
2981 async_pixel_transfer_delegate_->GetTextureUploadCount();
2981 } 2982 }
2982 2983
2983 base::TimeDelta GLES2DecoderImpl::GetTotalTextureUploadTime() { 2984 base::TimeDelta GLES2DecoderImpl::GetTotalTextureUploadTime() {
2984 return total_texture_upload_time_; 2985 return total_texture_upload_time_ +
2986 async_pixel_transfer_delegate_->GetTotalTextureUploadTime();
2985 } 2987 }
2986 2988
2987 base::TimeDelta GLES2DecoderImpl::GetTotalProcessingCommandsTime() { 2989 base::TimeDelta GLES2DecoderImpl::GetTotalProcessingCommandsTime() {
2988 return total_processing_commands_time_; 2990 return total_processing_commands_time_;
2989 } 2991 }
2990 2992
2991 void GLES2DecoderImpl::AddProcessingCommandsTime(base::TimeDelta time) { 2993 void GLES2DecoderImpl::AddProcessingCommandsTime(base::TimeDelta time) {
2992 total_processing_commands_time_ += time; 2994 total_processing_commands_time_ += time;
2993 } 2995 }
2994 2996
(...skipping 7011 matching lines...) Expand 10 before | Expand all | Expand 10 after
10006 return error::kNoError; 10008 return error::kNoError;
10007 } 10009 }
10008 10010
10009 // Include the auto-generated part of this file. We split this because it means 10011 // Include the auto-generated part of this file. We split this because it means
10010 // we can easily edit the non-auto generated parts right here in this file 10012 // we can easily edit the non-auto generated parts right here in this file
10011 // instead of having to edit some template or the code generator. 10013 // instead of having to edit some template or the code generator.
10012 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 10014 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
10013 10015
10014 } // namespace gles2 10016 } // namespace gles2
10015 } // namespace gpu 10017 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/async_pixel_transfer_delegate_mock.h ('k') | ui/gl/async_pixel_transfer_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698