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

Side by Side Diff: cc/debug/invalidation_benchmark.h

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 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 | « cc/debug/frame_viewer_instrumentation.h ('k') | cc/debug/invalidation_benchmark.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 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
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_
OLDNEW
« no previous file with comments | « cc/debug/frame_viewer_instrumentation.h ('k') | cc/debug/invalidation_benchmark.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698