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_unittest.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 Pool pool) { | 1169 Pool pool) { |
1170 PoolInfo& info = pool_infos_[pool]; | 1170 PoolInfo& info = pool_infos_[pool]; |
1171 info.size += new_size - old_size; | 1171 info.size += new_size - old_size; |
1172 } | 1172 } |
1173 | 1173 |
1174 size_t GetPoolSize(Pool pool) { | 1174 size_t GetPoolSize(Pool pool) { |
1175 const PoolInfo& info = pool_infos_[pool]; | 1175 const PoolInfo& info = pool_infos_[pool]; |
1176 return info.size - info.initial_size; | 1176 return info.size - info.initial_size; |
1177 } | 1177 } |
1178 | 1178 |
| 1179 uint64_t ClientTracingId() const override { return 0; } |
| 1180 int ClientId() const override { return 0; } |
| 1181 |
1179 private: | 1182 private: |
1180 virtual ~SizeOnlyMemoryTracker() {} | 1183 virtual ~SizeOnlyMemoryTracker() {} |
1181 struct PoolInfo { | 1184 struct PoolInfo { |
1182 PoolInfo() : initial_size(0), size(0) {} | 1185 PoolInfo() : initial_size(0), size(0) {} |
1183 size_t initial_size; | 1186 size_t initial_size; |
1184 size_t size; | 1187 size_t size; |
1185 }; | 1188 }; |
1186 std::map<Pool, PoolInfo> pool_infos_; | 1189 std::map<Pool, PoolInfo> pool_infos_; |
1187 }; | 1190 }; |
1188 | 1191 |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1579 INSTANTIATE_TEST_CASE_P(Service, | 1582 INSTANTIATE_TEST_CASE_P(Service, |
1580 GLES2DecoderRGBBackbufferTest, | 1583 GLES2DecoderRGBBackbufferTest, |
1581 ::testing::Bool()); | 1584 ::testing::Bool()); |
1582 | 1585 |
1583 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderDoCommandsTest, ::testing::Bool()); | 1586 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderDoCommandsTest, ::testing::Bool()); |
1584 | 1587 |
1585 INSTANTIATE_TEST_CASE_P(Service, GLES3DecoderTest, ::testing::Bool()); | 1588 INSTANTIATE_TEST_CASE_P(Service, GLES3DecoderTest, ::testing::Bool()); |
1586 | 1589 |
1587 } // namespace gles2 | 1590 } // namespace gles2 |
1588 } // namespace gpu | 1591 } // namespace gpu |
OLD | NEW |