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

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_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 #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
45 // Original visible area of the quad
danakj 2015/08/28 22:48:10 period at the end can you explain what you mean b
william.xie1 2015/08/28 23:18:42 Hi Dana, Thanks for your comments. My previous me
46 gfx::Rect original_visible_rect;
47
48 // Actual visible area of the quad
danakj 2015/08/28 22:48:09 ditto
49 gfx::Rect actual_visible_rect;
50
44 // Texture resource to present in an overlay. 51 // Texture resource to present in an overlay.
45 unsigned resource_id; 52 unsigned resource_id;
46 // Stacking order of the overlay plane relative to the main surface, 53 // Stacking order of the overlay plane relative to the main surface,
47 // which is 0. Signed to allow for "underlays". 54 // which is 0. Signed to allow for "underlays".
48 int plane_z_order; 55 int plane_z_order;
49 56
50 // To be modified by the implementer if this candidate can go into 57 // To be modified by the implementer if this candidate can go into
51 // an overlay. 58 // an overlay.
52 bool overlay_handled; 59 bool overlay_handled;
53 }; 60 };
54 61
55 typedef std::vector<OverlayCandidate> OverlayCandidateList; 62 typedef std::vector<OverlayCandidate> OverlayCandidateList;
56 63
57 } // namespace cc 64 } // namespace cc
58 65
59 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_H_ 66 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/overlay_strategy_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698