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

Side by Side Diff: ui/ozone/public/overlay_candidates_ozone.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
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 UI_OZONE_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_ 5 #ifndef UI_OZONE_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_
6 #define UI_OZONE_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_ 6 #define UI_OZONE_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 17 matching lines...) Expand all
28 // Format of the buffer to composite. 28 // Format of the buffer to composite.
29 gfx::BufferFormat format = gfx::BufferFormat::BGRA_8888; 29 gfx::BufferFormat format = gfx::BufferFormat::BGRA_8888;
30 // Size of the buffer, in pixels. 30 // Size of the buffer, in pixels.
31 gfx::Size buffer_size; 31 gfx::Size buffer_size;
32 // Rect on the display to position the overlay to. Input rectangle may 32 // Rect on the display to position the overlay to. Input rectangle may
33 // not have integer coordinates, but when accepting for overlay, must 33 // not have integer coordinates, but when accepting for overlay, must
34 // be modified by CheckOverlaySupport to output integer values. 34 // be modified by CheckOverlaySupport to output integer values.
35 gfx::RectF display_rect; 35 gfx::RectF display_rect;
36 // Crop within the buffer to be placed inside |display_rect|. 36 // Crop within the buffer to be placed inside |display_rect|.
37 gfx::RectF crop_rect; 37 gfx::RectF crop_rect;
38 // Quad geometry rect after applying the quad_transform().
39 gfx::Rect quad_rect_in_target_space;
40 // Clip rect in the target content space after composition.
41 gfx::Rect clip_rect;
42 // If the quad is clipped after composition.
43 bool is_clipped;
danakj 2015/09/01 20:35:25 initialize in the constructor
william.xie1 2015/09/01 21:50:12 Done.
38 // Stacking order of the overlay plane relative to the main surface, 44 // Stacking order of the overlay plane relative to the main surface,
39 // which is 0. Signed to allow for "underlays". 45 // which is 0. Signed to allow for "underlays".
40 int plane_z_order = 0; 46 int plane_z_order = 0;
41
42 // To be modified by the implementer if this candidate can go into 47 // To be modified by the implementer if this candidate can go into
43 // an overlay. 48 // an overlay.
44 bool overlay_handled = false; 49 bool overlay_handled = false;
45 }; 50 };
46 51
47 typedef std::vector<OverlaySurfaceCandidate> OverlaySurfaceCandidateList; 52 typedef std::vector<OverlaySurfaceCandidate> OverlaySurfaceCandidateList;
48 53
49 // A list of possible overlay candidates is presented to this function. 54 // A list of possible overlay candidates is presented to this function.
50 // The expected result is that those candidates that can be in a separate 55 // The expected result is that those candidates that can be in a separate
51 // plane are marked with |overlay_handled| set to true, otherwise they are 56 // plane are marked with |overlay_handled| set to true, otherwise they are
52 // to be traditionally composited. When setting |overlay_handled| to true, 57 // to be traditionally composited. When setting |overlay_handled| to true,
53 // the implementation must also snap |display_rect| to integer coordinates 58 // the implementation must also snap |display_rect| to integer coordinates
54 // if necessary. 59 // if necessary.
55 virtual void CheckOverlaySupport(OverlaySurfaceCandidateList* surfaces); 60 virtual void CheckOverlaySupport(OverlaySurfaceCandidateList* surfaces);
56 61
57 virtual ~OverlayCandidatesOzone(); 62 virtual ~OverlayCandidatesOzone();
58 }; 63 };
59 64
60 } // namespace ui 65 } // namespace ui
61 66
62 #endif // UI_OZONE_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_ 67 #endif // UI_OZONE_PUBLIC_OVERLAY_CANDIDATES_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698