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

Side by Side Diff: cc/output/overlay_candidate.cc

Issue 416273005: cc/output: cleanup: Remove unnecessary #includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « cc/output/overlay_candidate.h ('k') | cc/output/overlay_candidate_validator.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/output/overlay_candidate.h" 5 #include "cc/output/overlay_candidate.h"
6 6
7 #include "ui/gfx/rect_conversions.h" 7 #include <algorithm>
8 #include "base/logging.h"
9 #include "ui/gfx/geometry/rect_conversions.h"
8 10
9 namespace cc { 11 namespace cc {
10 12
11 OverlayCandidate::OverlayCandidate() 13 OverlayCandidate::OverlayCandidate()
12 : transform(gfx::OVERLAY_TRANSFORM_NONE), 14 : transform(gfx::OVERLAY_TRANSFORM_NONE),
13 format(RGBA_8888), 15 format(RGBA_8888),
14 uv_rect(0.f, 0.f, 1.f, 1.f), 16 uv_rect(0.f, 0.f, 1.f, 1.f),
15 resource_id(0), 17 resource_id(0),
16 plane_z_order(0), 18 plane_z_order(0),
17 overlay_handled(false) {} 19 overlay_handled(false) {}
(...skipping 15 matching lines...) Expand all
33 gfx::Rect OverlayCandidate::GetOverlayRect(const gfx::Transform& quad_transform, 35 gfx::Rect OverlayCandidate::GetOverlayRect(const gfx::Transform& quad_transform,
34 const gfx::Rect& rect) { 36 const gfx::Rect& rect) {
35 DCHECK(quad_transform.IsIdentityOrTranslation()); 37 DCHECK(quad_transform.IsIdentityOrTranslation());
36 38
37 gfx::RectF float_rect(rect); 39 gfx::RectF float_rect(rect);
38 quad_transform.TransformRect(&float_rect); 40 quad_transform.TransformRect(&float_rect);
39 return gfx::ToNearestRect(float_rect); 41 return gfx::ToNearestRect(float_rect);
40 } 42 }
41 43
42 } // namespace cc 44 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/overlay_candidate.h ('k') | cc/output/overlay_candidate_validator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698