forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Ozone] Adding display related IPC messages
These messages allow requesting display updates and performing basic display configuration. BUG=377497 NOTRY=true Review URL: https://codereview.chromium.org/378673002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282022 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
dnicoara@chromium.org
committed
Jul 9, 2014
1 parent
f8d8464
commit 6aad2d4
Showing
5 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright 2014 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "ui/ozone/common/gpu/ozone_gpu_message_params.h" | ||
|
||
namespace ui { | ||
|
||
DisplayMode_Params::DisplayMode_Params() | ||
: size(), is_interlaced(false), refresh_rate(0.0f) {} | ||
|
||
DisplayMode_Params::~DisplayMode_Params() {} | ||
|
||
DisplaySnapshot_Params::DisplaySnapshot_Params() | ||
: display_id(0), | ||
has_proper_display_id(false), | ||
origin(), | ||
physical_size(), | ||
type(ui::DISPLAY_CONNECTION_TYPE_NONE), | ||
is_aspect_preserving_scaling(false), | ||
has_overscan(false), | ||
display_name(), | ||
modes(), | ||
has_current_mode(false), | ||
current_mode(), | ||
has_native_mode(false), | ||
native_mode() {} | ||
|
||
DisplaySnapshot_Params::~DisplaySnapshot_Params() {} | ||
|
||
} // namespace ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Copyright 2014 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ | ||
#define UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
#include "ui/display/types/display_constants.h" | ||
#include "ui/gfx/geometry/point.h" | ||
#include "ui/gfx/geometry/size.h" | ||
|
||
namespace ui { | ||
|
||
struct DisplayMode_Params { | ||
DisplayMode_Params(); | ||
~DisplayMode_Params(); | ||
|
||
gfx::Size size; | ||
bool is_interlaced; | ||
float refresh_rate; | ||
}; | ||
|
||
struct DisplaySnapshot_Params { | ||
DisplaySnapshot_Params(); | ||
~DisplaySnapshot_Params(); | ||
|
||
int64_t display_id; | ||
bool has_proper_display_id; | ||
gfx::Point origin; | ||
gfx::Size physical_size; | ||
DisplayConnectionType type; | ||
bool is_aspect_preserving_scaling; | ||
bool has_overscan; | ||
std::string display_name; | ||
std::vector<DisplayMode_Params> modes; | ||
bool has_current_mode; | ||
DisplayMode_Params current_mode; | ||
bool has_native_mode; | ||
DisplayMode_Params native_mode; | ||
std::string string_representation; | ||
}; | ||
|
||
} // namespace ui | ||
|
||
#endif // UI_OZONE_COMMON_GPU_OZONE_GPU_MESSAGE_PARAMS_H_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters