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

Side by Side Diff: ui/ozone/common/gpu/ozone_gpu_message_params.h

Issue 1128113011: ozone: Introduce ClientPixmap and ClientPixmapFactory for non-GPU processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed nits Created 5 years, 4 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_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ 5 #ifndef UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_
6 #define UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ 6 #define UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ui/display/types/display_constants.h" 11 #include "ui/display/types/display_constants.h"
12 #include "ui/gfx/geometry/point.h" 12 #include "ui/gfx/geometry/point.h"
13 #include "ui/gfx/geometry/size.h" 13 #include "ui/gfx/geometry/size.h"
14 #include "ui/gfx/overlay_transform.h" 14 #include "ui/gfx/overlay_transform.h"
15 #include "ui/ozone/ozone_export.h" 15 #include "ui/ozone/ozone_export.h"
16 #include "ui/ozone/public/native_pixmap_types.h"
16 #include "ui/ozone/public/overlay_candidates_ozone.h" 17 #include "ui/ozone/public/overlay_candidates_ozone.h"
17 #include "ui/ozone/public/surface_factory_ozone.h"
18 18
19 namespace ui { 19 namespace ui {
20 20
21 struct OZONE_EXPORT DisplayMode_Params { 21 struct OZONE_EXPORT DisplayMode_Params {
22 DisplayMode_Params(); 22 DisplayMode_Params();
23 ~DisplayMode_Params(); 23 ~DisplayMode_Params();
24 24
25 gfx::Size size; 25 gfx::Size size;
26 bool is_interlaced = false; 26 bool is_interlaced = false;
27 float refresh_rate = 0.0f; 27 float refresh_rate = 0.0f;
(...skipping 20 matching lines...) Expand all
48 }; 48 };
49 49
50 struct OZONE_EXPORT OverlayCheck_Params { 50 struct OZONE_EXPORT OverlayCheck_Params {
51 OverlayCheck_Params(); 51 OverlayCheck_Params();
52 OverlayCheck_Params( 52 OverlayCheck_Params(
53 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate); 53 const OverlayCandidatesOzone::OverlaySurfaceCandidate& candidate);
54 ~OverlayCheck_Params(); 54 ~OverlayCheck_Params();
55 55
56 gfx::Size buffer_size; 56 gfx::Size buffer_size;
57 gfx::OverlayTransform transform = gfx::OVERLAY_TRANSFORM_INVALID; 57 gfx::OverlayTransform transform = gfx::OVERLAY_TRANSFORM_INVALID;
58 SurfaceFactoryOzone::BufferFormat format = SurfaceFactoryOzone::UNKNOWN; 58 NativePixmapFormat format = NATIVE_PIXMAP_FORMAT_BGRA_8888;
59 gfx::Rect display_rect; 59 gfx::Rect display_rect;
60 int plane_z_order = 0; 60 int plane_z_order = 0;
61 }; 61 };
62 62
63 } // namespace ui 63 } // namespace ui
64 64
65 #endif // UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ 65 #endif // UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_
66 66
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698