OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CC_DEBUG_INVALIDATION_BENCHMARK_H_ | 5 #ifndef CC_DEBUG_INVALIDATION_BENCHMARK_H_ |
6 #define CC_DEBUG_INVALIDATION_BENCHMARK_H_ | 6 #define CC_DEBUG_INVALIDATION_BENCHMARK_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "cc/debug/micro_benchmark_controller.h" | 12 #include "cc/debug/micro_benchmark_controller.h" |
11 | 13 |
12 namespace cc { | 14 namespace cc { |
13 | 15 |
14 class LayerTreeHost; | 16 class LayerTreeHost; |
15 class Layer; | 17 class Layer; |
16 // NOTE: this benchmark will not measure or return any results, it will simply | 18 // NOTE: this benchmark will not measure or return any results, it will simply |
17 // invalidate a certain area of each layer every frame. It is intended to be | 19 // invalidate a certain area of each layer every frame. It is intended to be |
(...skipping 11 matching lines...) Expand all Loading... |
29 bool ProcessMessage(scoped_ptr<base::Value> value) override; | 31 bool ProcessMessage(scoped_ptr<base::Value> value) override; |
30 | 32 |
31 private: | 33 private: |
32 enum Mode { FIXED_SIZE, LAYER, VIEWPORT, RANDOM }; | 34 enum Mode { FIXED_SIZE, LAYER, VIEWPORT, RANDOM }; |
33 | 35 |
34 float LCGRandom(); | 36 float LCGRandom(); |
35 | 37 |
36 Mode mode_; | 38 Mode mode_; |
37 int width_; | 39 int width_; |
38 int height_; | 40 int height_; |
39 uint32 seed_; | 41 uint32_t seed_; |
40 }; | 42 }; |
41 | 43 |
42 } // namespace cc | 44 } // namespace cc |
43 | 45 |
44 #endif // CC_DEBUG_INVALIDATION_BENCHMARK_H_ | 46 #endif // CC_DEBUG_INVALIDATION_BENCHMARK_H_ |
OLD | NEW |