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

Unified Diff: mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.cc

Issue 1418613009: Fnl/ozone build fix (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.cc
diff --git a/mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.cc b/mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.cc
index 4106cc2b0b0d88789337bdc558cf4523ddc9e0b3..51639a504cb9ff8e2341b626071e5c7712e1a7aa 100644
--- a/mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.cc
+++ b/mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.cc
@@ -30,31 +30,31 @@ DisplayModePtr TypeConverter<DisplayModePtr, ui::DisplayMode_Params>::Convert(
}
static_assert(static_cast<int>(ui::DISPLAY_CONNECTION_TYPE_NONE) ==
- static_cast<int>(mojo::DisplayType::DISPLAY_TYPE_NONE),
+ static_cast<int>(mojo::DisplayType::NONE),
"Enum value mismatch");
static_assert(static_cast<int>(ui::DISPLAY_CONNECTION_TYPE_UNKNOWN) ==
- static_cast<int>(mojo::DisplayType::DISPLAY_TYPE_UNKNOWN),
+ static_cast<int>(mojo::DisplayType::UNKNOWN),
"Enum value mismatch");
static_assert(static_cast<int>(ui::DISPLAY_CONNECTION_TYPE_INTERNAL) ==
- static_cast<int>(mojo::DisplayType::DISPLAY_TYPE_INTERNAL),
+ static_cast<int>(mojo::DisplayType::INTERNAL),
"Enum value mismatch");
static_assert(static_cast<int>(ui::DISPLAY_CONNECTION_TYPE_VGA) ==
- static_cast<int>(mojo::DisplayType::DISPLAY_TYPE_VGA),
+ static_cast<int>(mojo::DisplayType::VGA),
"Enum value mismatch");
static_assert(static_cast<int>(ui::DISPLAY_CONNECTION_TYPE_HDMI) ==
- static_cast<int>(mojo::DisplayType::DISPLAY_TYPE_HDMI),
+ static_cast<int>(mojo::DisplayType::HDMI),
"Enum value mismatch");
static_assert(static_cast<int>(ui::DISPLAY_CONNECTION_TYPE_DVI) ==
- static_cast<int>(mojo::DisplayType::DISPLAY_TYPE_DVI),
+ static_cast<int>(mojo::DisplayType::DVI),
"Enum value mismatch");
static_assert(static_cast<int>(ui::DISPLAY_CONNECTION_TYPE_DISPLAYPORT) ==
- static_cast<int>(mojo::DisplayType::DISPLAY_TYPE_DISPLAYPORT),
+ static_cast<int>(mojo::DisplayType::DISPLAYPORT),
"Enum value mismatch");
static_assert(static_cast<int>(ui::DISPLAY_CONNECTION_TYPE_NETWORK) ==
- static_cast<int>(mojo::DisplayType::DISPLAY_TYPE_NETWORK),
+ static_cast<int>(mojo::DisplayType::NETWORK),
"Enum value mismatch");
static_assert(static_cast<int>(ui::DISPLAY_CONNECTION_TYPE_LAST) ==
- static_cast<int>(mojo::DisplayType::DISPLAY_TYPE_LAST),
+ static_cast<int>(mojo::DisplayType::LAST),
"Enum value mismatch");
// static
@@ -88,7 +88,7 @@ TypeConverter<DisplaySnapshotPtr, ui::DisplaySnapshot_Params>::Convert(
out->origin = Point::From<gfx::Point>(in.origin);
out->physical_size = Size::From<gfx::Size>(in.physical_size);
out->type = static_cast<mojo::DisplayType>(in.type);
- assert(out->type <= mojo::DisplayType::DISPLAY_TYPE_LAST);
+ assert(out->type <= mojo::DisplayType::LAST);
auto modes = Array<DisplayModePtr>::New(in.modes.size());
for (size_t i = 0; i < in.modes.size(); ++i) {
auto mode = DisplayMode::From<ui::DisplayMode_Params>(in.modes[i]);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698