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

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: 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') | cc/output/overlay_unittest.cc » ('J')
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"
(...skipping 23 matching lines...) Expand all
34 gfx::OverlayTransform transform; 34 gfx::OverlayTransform transform;
35 // Format of the buffer to composite. 35 // Format of the buffer to composite.
36 ResourceFormat format; 36 ResourceFormat format;
37 // Size of the resource, in pixels. 37 // Size of the resource, in pixels.
38 gfx::Size resource_size_in_pixels; 38 gfx::Size resource_size_in_pixels;
39 // Rect on the display to position the overlay to. Implementer must convert 39 // Rect on the display to position the overlay to. Implementer must convert
40 // to integer coordinates if setting |overlay_handled| to true. 40 // to integer coordinates if setting |overlay_handled| to true.
41 gfx::RectF display_rect; 41 gfx::RectF display_rect;
42 // Crop within the buffer to be placed inside |display_rect|. 42 // Crop within the buffer to be placed inside |display_rect|.
43 gfx::RectF uv_rect; 43 gfx::RectF uv_rect;
44 // Quad geometry rect after applying the quad_transform().
45 gfx::Rect quad_rect_in_target_space;
46 // Clip rect in the target content space after composition.
47 gfx::Rect clip_rect;
48 // If the quad is clipped after composition.
49 bool is_clipped;
44 // True if the texture for this overlay should be the same one used by the 50 // True if the texture for this overlay should be the same one used by the
45 // output surface's main overlay. 51 // output surface's main overlay.
46 bool use_output_surface_for_resource; 52 bool use_output_surface_for_resource;
47 // Texture resource to present in an overlay. 53 // Texture resource to present in an overlay.
48 unsigned resource_id; 54 unsigned resource_id;
49 // Stacking order of the overlay plane relative to the main surface, 55 // Stacking order of the overlay plane relative to the main surface,
50 // which is 0. Signed to allow for "underlays". 56 // which is 0. Signed to allow for "underlays".
51 int plane_z_order; 57 int plane_z_order;
52 58
53 // To be modified by the implementer if this candidate can go into 59 // To be modified by the implementer if this candidate can go into
54 // an overlay. 60 // an overlay.
55 bool overlay_handled; 61 bool overlay_handled;
56 }; 62 };
57 63
58 typedef std::vector<OverlayCandidate> OverlayCandidateList; 64 typedef std::vector<OverlayCandidate> OverlayCandidateList;
59 65
60 } // namespace cc 66 } // namespace cc
61 67
62 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_H_ 68 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/overlay_candidate.cc » ('j') | cc/output/overlay_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698