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

Side by Side Diff: cc/test/test_occlusion_tracker.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/test/test_in_process_context_provider.cc ('k') | cc/test/test_shared_bitmap_manager.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_TEST_TEST_OCCLUSION_TRACKER_H_ 5 #ifndef CC_TEST_TEST_OCCLUSION_TRACKER_H_
6 #define CC_TEST_TEST_OCCLUSION_TRACKER_H_ 6 #define CC_TEST_TEST_OCCLUSION_TRACKER_H_
7 7
8 #include <stddef.h>
9
8 #include "cc/layers/render_surface_impl.h" 10 #include "cc/layers/render_surface_impl.h"
9 #include "cc/trees/occlusion_tracker.h" 11 #include "cc/trees/occlusion_tracker.h"
10 12
11 namespace cc { 13 namespace cc {
12 14
13 // A subclass to expose the total current occlusion. 15 // A subclass to expose the total current occlusion.
14 class TestOcclusionTracker : public OcclusionTracker { 16 class TestOcclusionTracker : public OcclusionTracker {
15 public: 17 public:
16 explicit TestOcclusionTracker(const gfx::Rect& screen_scissor_rect) 18 explicit TestOcclusionTracker(const gfx::Rect& screen_scissor_rect)
17 : OcclusionTracker(screen_scissor_rect) {} 19 : OcclusionTracker(screen_scissor_rect) {}
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const SimpleEnclosedRegion& region) { 57 const SimpleEnclosedRegion& region) {
56 size_t stack_size = stack_.size(); 58 size_t stack_size = stack_.size();
57 DCHECK_GE(stack_size, 2u); 59 DCHECK_GE(stack_size, 2u);
58 stack_[stack_size - 2].occlusion_from_inside_target = region; 60 stack_[stack_size - 2].occlusion_from_inside_target = region;
59 } 61 }
60 }; 62 };
61 63
62 } // namespace cc 64 } // namespace cc
63 65
64 #endif // CC_TEST_TEST_OCCLUSION_TRACKER_H_ 66 #endif // CC_TEST_TEST_OCCLUSION_TRACKER_H_
OLDNEW
« no previous file with comments | « cc/test/test_in_process_context_provider.cc ('k') | cc/test/test_shared_bitmap_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698