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

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

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 | « no previous file | cc/output/overlay_candidate.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 #ifndef CC_OUTPUT_OVERLAY_CANDIDATE_H_ 5 #ifndef CC_OUTPUT_OVERLAY_CANDIDATE_H_
6 #define CC_OUTPUT_OVERLAY_CANDIDATE_H_ 6 #define CC_OUTPUT_OVERLAY_CANDIDATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 #include "cc/resources/resource_format.h" 11 #include "cc/resources/resource_format.h"
12 #include "ui/gfx/geometry/rect.h"
12 #include "ui/gfx/geometry/rect_f.h" 13 #include "ui/gfx/geometry/rect_f.h"
13 #include "ui/gfx/geometry/size.h" 14 #include "ui/gfx/geometry/size.h"
14 #include "ui/gfx/overlay_transform.h" 15 #include "ui/gfx/overlay_transform.h"
15 #include "ui/gfx/transform.h" 16 #include "ui/gfx/transform.h"
16 17
17 namespace gfx { 18 namespace gfx {
18 class Rect; 19 class Rect;
19 } 20 }
20 21
21 namespace cc { 22 namespace cc {
(...skipping 17 matching lines...) Expand all
39 gfx::OverlayTransform transform; 40 gfx::OverlayTransform transform;
40 // Format of the buffer to composite. 41 // Format of the buffer to composite.
41 ResourceFormat format; 42 ResourceFormat format;
42 // Size of the resource, in pixels. 43 // Size of the resource, in pixels.
43 gfx::Size resource_size_in_pixels; 44 gfx::Size resource_size_in_pixels;
44 // Rect on the display to position the overlay to. Implementer must convert 45 // Rect on the display to position the overlay to. Implementer must convert
45 // to integer coordinates if setting |overlay_handled| to true. 46 // to integer coordinates if setting |overlay_handled| to true.
46 gfx::RectF display_rect; 47 gfx::RectF display_rect;
47 // Crop within the buffer to be placed inside |display_rect|. 48 // Crop within the buffer to be placed inside |display_rect|.
48 gfx::RectF uv_rect; 49 gfx::RectF uv_rect;
50 // Quad geometry rect after applying the quad_transform().
51 gfx::Rect quad_rect_in_target_space;
52 // Clip rect in the target content space after composition.
53 gfx::Rect clip_rect;
54 // If the quad is clipped after composition.
55 bool is_clipped;
49 // True if the texture for this overlay should be the same one used by the 56 // True if the texture for this overlay should be the same one used by the
50 // output surface's main overlay. 57 // output surface's main overlay.
51 bool use_output_surface_for_resource; 58 bool use_output_surface_for_resource;
52 // Texture resource to present in an overlay. 59 // Texture resource to present in an overlay.
53 unsigned resource_id; 60 unsigned resource_id;
54 // Stacking order of the overlay plane relative to the main surface, 61 // Stacking order of the overlay plane relative to the main surface,
55 // which is 0. Signed to allow for "underlays". 62 // which is 0. Signed to allow for "underlays".
56 int plane_z_order; 63 int plane_z_order;
57 64
58 // To be modified by the implementer if this candidate can go into 65 // To be modified by the implementer if this candidate can go into
59 // an overlay. 66 // an overlay.
60 bool overlay_handled; 67 bool overlay_handled;
61 }; 68 };
62 69
63 typedef std::vector<OverlayCandidate> OverlayCandidateList; 70 typedef std::vector<OverlayCandidate> OverlayCandidateList;
64 71
65 } // namespace cc 72 } // namespace cc
66 73
67 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_H_ 74 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/overlay_candidate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698