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

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

Issue 1311013002: [Ozone] Fix SingleOnTop issue by checking if the quad is clipped. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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_strategy_common.cc » ('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 is_clipped(false),
41 use_output_surface_for_resource(false), 42 use_output_surface_for_resource(false),
42 resource_id(0), 43 resource_id(0),
43 plane_z_order(0), 44 plane_z_order(0),
44 overlay_handled(false) {} 45 overlay_handled(false) {}
45 46
46 OverlayCandidate::~OverlayCandidate() {} 47 OverlayCandidate::~OverlayCandidate() {}
47 48
48 // static 49 // static
49 gfx::OverlayTransform OverlayCandidate::GetOverlayTransform( 50 gfx::OverlayTransform OverlayCandidate::GetOverlayTransform(
50 const gfx::Transform& quad_transform, 51 const gfx::Transform& quad_transform,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 const gfx::Transform& quad_transform, 180 const gfx::Transform& quad_transform,
180 const gfx::Rect& rect) { 181 const gfx::Rect& rect) {
181 DCHECK(quad_transform.Preserves2dAxisAlignment()); 182 DCHECK(quad_transform.Preserves2dAxisAlignment());
182 183
183 gfx::RectF float_rect(rect); 184 gfx::RectF float_rect(rect);
184 quad_transform.TransformRect(&float_rect); 185 quad_transform.TransformRect(&float_rect);
185 return float_rect; 186 return float_rect;
186 } 187 }
187 188
188 } // namespace cc 189 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/overlay_candidate.h ('k') | cc/output/overlay_strategy_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698