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

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

Issue 1304303002: Mac Overlays: Add sandwich strategy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@overlay_debug
Patch Set: incorporate review feedback Created 5 years, 3 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 <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "cc/base/math_util.h" 10 #include "cc/base/math_util.h"
(...skipping 20 matching lines...) Expand all
31 else 31 else
32 return NONE; 32 return NONE;
33 } 33 }
34 34
35 } // namespace 35 } // namespace
36 36
37 OverlayCandidate::OverlayCandidate() 37 OverlayCandidate::OverlayCandidate()
38 : transform(gfx::OVERLAY_TRANSFORM_NONE), 38 : transform(gfx::OVERLAY_TRANSFORM_NONE),
39 format(RGBA_8888), 39 format(RGBA_8888),
40 uv_rect(0.f, 0.f, 1.f, 1.f), 40 uv_rect(0.f, 0.f, 1.f, 1.f),
41 use_output_surface_for_resource(false),
41 resource_id(0), 42 resource_id(0),
42 plane_z_order(0), 43 plane_z_order(0),
43 overlay_handled(false) {} 44 overlay_handled(false) {}
44 45
45 OverlayCandidate::~OverlayCandidate() {} 46 OverlayCandidate::~OverlayCandidate() {}
46 47
47 // static 48 // static
48 gfx::OverlayTransform OverlayCandidate::GetOverlayTransform( 49 gfx::OverlayTransform OverlayCandidate::GetOverlayTransform(
49 const gfx::Transform& quad_transform, 50 const gfx::Transform& quad_transform,
50 bool y_flipped) { 51 bool y_flipped) {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 const gfx::Transform& quad_transform, 179 const gfx::Transform& quad_transform,
179 const gfx::Rect& rect) { 180 const gfx::Rect& rect) {
180 DCHECK(quad_transform.Preserves2dAxisAlignment()); 181 DCHECK(quad_transform.Preserves2dAxisAlignment());
181 182
182 gfx::RectF float_rect(rect); 183 gfx::RectF float_rect(rect);
183 quad_transform.TransformRect(&float_rect); 184 quad_transform.TransformRect(&float_rect);
184 return float_rect; 185 return float_rect;
185 } 186 }
186 187
187 } // namespace cc 188 } // 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