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

Side by Side Diff: cc/trees/occlusion_tracker.cc

Issue 392013005: [#1] Delete reduntdant 19 header files in ui/gfx (8 of 19 by this) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sorted includes Created 6 years, 5 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "cc/trees/occlusion_tracker.h" 5 #include "cc/trees/occlusion_tracker.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "cc/base/math_util.h" 9 #include "cc/base/math_util.h"
10 #include "cc/layers/layer.h" 10 #include "cc/layers/layer.h"
11 #include "cc/layers/layer_impl.h" 11 #include "cc/layers/layer_impl.h"
12 #include "cc/layers/render_surface.h" 12 #include "cc/layers/render_surface.h"
13 #include "cc/layers/render_surface_impl.h" 13 #include "cc/layers/render_surface_impl.h"
14 #include "ui/gfx/quad_f.h" 14 #include "ui/gfx/geometry/quad_f.h"
15 #include "ui/gfx/rect_conversions.h" 15 #include "ui/gfx/rect_conversions.h"
16 16
17 namespace cc { 17 namespace cc {
18 18
19 template <typename LayerType> 19 template <typename LayerType>
20 OcclusionTracker<LayerType>::OcclusionTracker( 20 OcclusionTracker<LayerType>::OcclusionTracker(
21 const gfx::Rect& screen_space_clip_rect) 21 const gfx::Rect& screen_space_clip_rect)
22 : screen_space_clip_rect_(screen_space_clip_rect), 22 : screen_space_clip_rect_(screen_space_clip_rect),
23 occluding_screen_space_rects_(NULL), 23 occluding_screen_space_rects_(NULL),
24 non_occluding_screen_space_rects_(NULL) {} 24 non_occluding_screen_space_rects_(NULL) {}
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 unoccluded_rect.Intersect(content_rect); 622 unoccluded_rect.Intersect(content_rect);
623 623
624 return unoccluded_rect; 624 return unoccluded_rect;
625 } 625 }
626 626
627 // Instantiate (and export) templates here for the linker. 627 // Instantiate (and export) templates here for the linker.
628 template class OcclusionTracker<Layer>; 628 template class OcclusionTracker<Layer>;
629 template class OcclusionTracker<LayerImpl>; 629 template class OcclusionTracker<LayerImpl>;
630 630
631 } // namespace cc 631 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698