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/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 2937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2948 TextureManager::TextureInfo* texture = | 2948 TextureManager::TextureInfo* texture = |
2949 texture_manager()->GetTextureInfo(client_texture_id); | 2949 texture_manager()->GetTextureInfo(client_texture_id); |
2950 if (texture) { | 2950 if (texture) { |
2951 *service_texture_id = texture->service_id(); | 2951 *service_texture_id = texture->service_id(); |
2952 return true; | 2952 return true; |
2953 } | 2953 } |
2954 return false; | 2954 return false; |
2955 } | 2955 } |
2956 | 2956 |
2957 uint32 GLES2DecoderImpl::GetTextureUploadCount() { | 2957 uint32 GLES2DecoderImpl::GetTextureUploadCount() { |
2958 return texture_upload_count_; | 2958 return texture_upload_count_ + |
| 2959 async_pixel_transfer_delegate_->GetTextureUploadCount(); |
2959 } | 2960 } |
2960 | 2961 |
2961 base::TimeDelta GLES2DecoderImpl::GetTotalTextureUploadTime() { | 2962 base::TimeDelta GLES2DecoderImpl::GetTotalTextureUploadTime() { |
2962 return total_texture_upload_time_; | 2963 return total_texture_upload_time_ + |
| 2964 async_pixel_transfer_delegate_->GetTotalTextureUploadTime(); |
2963 } | 2965 } |
2964 | 2966 |
2965 base::TimeDelta GLES2DecoderImpl::GetTotalProcessingCommandsTime() { | 2967 base::TimeDelta GLES2DecoderImpl::GetTotalProcessingCommandsTime() { |
2966 return total_processing_commands_time_; | 2968 return total_processing_commands_time_; |
2967 } | 2969 } |
2968 | 2970 |
2969 void GLES2DecoderImpl::AddProcessingCommandsTime(base::TimeDelta time) { | 2971 void GLES2DecoderImpl::AddProcessingCommandsTime(base::TimeDelta time) { |
2970 total_processing_commands_time_ += time; | 2972 total_processing_commands_time_ += time; |
2971 } | 2973 } |
2972 | 2974 |
(...skipping 7011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9984 return error::kNoError; | 9986 return error::kNoError; |
9985 } | 9987 } |
9986 | 9988 |
9987 // Include the auto-generated part of this file. We split this because it means | 9989 // Include the auto-generated part of this file. We split this because it means |
9988 // we can easily edit the non-auto generated parts right here in this file | 9990 // we can easily edit the non-auto generated parts right here in this file |
9989 // instead of having to edit some template or the code generator. | 9991 // instead of having to edit some template or the code generator. |
9990 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 9992 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
9991 | 9993 |
9992 } // namespace gles2 | 9994 } // namespace gles2 |
9993 } // namespace gpu | 9995 } // namespace gpu |
OLD | NEW |