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

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

Issue 670183003: Update from chromium 62675d9fb31fb8cedc40f68e78e8445a74f362e7 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/trees/occlusion.h ('k') | cc/trees/occlusion_tracker.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 #include "cc/trees/occlusion.h" 5 #include "cc/trees/occlusion.h"
6 6
7 #include "cc/base/math_util.h" 7 #include "cc/base/math_util.h"
8 #include "ui/gfx/rect.h" 8 #include "ui/gfx/geometry/rect.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 Occlusion::Occlusion() { 12 Occlusion::Occlusion() {
13 } 13 }
14 14
15 Occlusion::Occlusion(const gfx::Transform& draw_transform, 15 Occlusion::Occlusion(const gfx::Transform& draw_transform,
16 const SimpleEnclosedRegion& occlusion_from_outside_target, 16 const SimpleEnclosedRegion& occlusion_from_outside_target,
17 const SimpleEnclosedRegion& occlusion_from_inside_target) 17 const SimpleEnclosedRegion& occlusion_from_inside_target)
18 : draw_transform_(draw_transform), 18 : draw_transform_(draw_transform),
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // once. 79 // once.
80 unoccluded_rect_in_target_surface.Subtract( 80 unoccluded_rect_in_target_surface.Subtract(
81 occlusion_from_inside_target_.bounds()); 81 occlusion_from_inside_target_.bounds());
82 unoccluded_rect_in_target_surface.Subtract( 82 unoccluded_rect_in_target_surface.Subtract(
83 occlusion_from_outside_target_.bounds()); 83 occlusion_from_outside_target_.bounds());
84 84
85 return unoccluded_rect_in_target_surface; 85 return unoccluded_rect_in_target_surface;
86 } 86 }
87 87
88 } // namespace cc 88 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/occlusion.h ('k') | cc/trees/occlusion_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698