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

Side by Side Diff: ui/ozone/platform/dri/overlay_plane.h

Issue 779173007: Fix crash when we don't have a plane to display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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 | « ui/ozone/platform/dri/crtc_controller.cc ('k') | ui/ozone/platform/dri/overlay_plane.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 UI_OZONE_PLATFORM_DRI_OVERLAY_PLANE_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_OVERLAY_PLANE_H_
6 #define UI_OZONE_PLATFORM_DRI_OVERLAY_PLANE_H_ 6 #define UI_OZONE_PLATFORM_DRI_OVERLAY_PLANE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 13 matching lines...) Expand all
24 24
25 OverlayPlane(scoped_refptr<ScanoutBuffer> buffer, 25 OverlayPlane(scoped_refptr<ScanoutBuffer> buffer,
26 int z_order, 26 int z_order,
27 gfx::OverlayTransform plane_transform, 27 gfx::OverlayTransform plane_transform,
28 const gfx::Rect& display_bounds, 28 const gfx::Rect& display_bounds,
29 const gfx::RectF& crop_rect); 29 const gfx::RectF& crop_rect);
30 30
31 ~OverlayPlane(); 31 ~OverlayPlane();
32 32
33 // Returns the primary plane in |overlays|. 33 // Returns the primary plane in |overlays|.
34 static const OverlayPlane& GetPrimaryPlane(const OverlayPlaneList& overlays); 34 static const OverlayPlane* GetPrimaryPlane(const OverlayPlaneList& overlays);
35 35
36 scoped_refptr<ScanoutBuffer> buffer; 36 scoped_refptr<ScanoutBuffer> buffer;
37 int z_order; 37 int z_order;
38 gfx::OverlayTransform plane_transform; 38 gfx::OverlayTransform plane_transform;
39 gfx::Rect display_bounds; 39 gfx::Rect display_bounds;
40 gfx::RectF crop_rect; 40 gfx::RectF crop_rect;
41 }; 41 };
42 42
43 } // namespace ui 43 } // namespace ui
44 44
45 #endif // UI_OZONE_PLATFORM_DRI_OVERLAY_PLANE_H_ 45 #endif // UI_OZONE_PLATFORM_DRI_OVERLAY_PLANE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/crtc_controller.cc ('k') | ui/ozone/platform/dri/overlay_plane.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698