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

Side by Side Diff: cc/test/mock_occlusion_tracker.h

Issue 308193003: Removed QuadSink and MockQuadCuller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@plumLayerImpl
Patch Set: rebase Created 6 years, 6 months 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/layer_test_common.cc ('k') | cc/test/mock_quad_culler.h » ('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_MOCK_OCCLUSION_TRACKER_H_ 5 #ifndef CC_TEST_MOCK_OCCLUSION_TRACKER_H_
6 #define CC_TEST_MOCK_OCCLUSION_TRACKER_H_ 6 #define CC_TEST_MOCK_OCCLUSION_TRACKER_H_
7 7
8 #include "cc/trees/occlusion_tracker.h" 8 #include "cc/trees/occlusion_tracker.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 23 matching lines...) Expand all
34 OcclusionTracker<LayerType>::stack_.back().occlusion_from_inside_target = 34 OcclusionTracker<LayerType>::stack_.back().occlusion_from_inside_target =
35 occluded; 35 occluded;
36 } 36 }
37 37
38 void set_occluded_target_rect_for_contributing_surface( 38 void set_occluded_target_rect_for_contributing_surface(
39 const gfx::Rect& occluded) { 39 const gfx::Rect& occluded) {
40 OcclusionTracker< 40 OcclusionTracker<
41 LayerType>::stack_[OcclusionTracker<LayerType>::stack_.size() - 2] 41 LayerType>::stack_[OcclusionTracker<LayerType>::stack_.size() - 2]
42 .occlusion_from_inside_target = occluded; 42 .occlusion_from_inside_target = occluded;
43 } 43 }
44
45 private:
46 DISALLOW_COPY_AND_ASSIGN(MockOcclusionTracker);
44 }; 47 };
45 48
46 } // namespace cc 49 } // namespace cc
47 50
48 #endif // CC_TEST_MOCK_OCCLUSION_TRACKER_H_ 51 #endif // CC_TEST_MOCK_OCCLUSION_TRACKER_H_
OLDNEW
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/test/mock_quad_culler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698