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

Unified Diff: ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h

Issue 1028563003: Load and apply a vcgt table from an ICC file to the internal display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use a vectore of tuples of RGB components for IPC Created 5 years, 8 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
Index: ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h
diff --git a/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h b/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h
index 2c844dbe432d24199784b2ef9a72f5bcd22a82f8..d92335d3c7ecbb620f6281c25b230c6ae4358495 100644
--- a/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h
+++ b/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.h
@@ -8,6 +8,7 @@
#include "base/containers/scoped_ptr_hash_map.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
+#include "base/tuple.h"
#include "ipc/message_filter.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/ozone/public/gpu_platform_support.h"
@@ -36,6 +37,8 @@ class ScreenManager;
struct DisplayMode_Params;
struct DisplaySnapshot_Params;
+typedef std::vector<Tuple<uint16_t, uint16_t, uint16_t>> GammaRampRGBData;
+
class DrmGpuPlatformSupport : public GpuPlatformSupport {
public:
DrmGpuPlatformSupport(DrmDeviceManager* drm_device_manager,
@@ -75,6 +78,7 @@ class DrmGpuPlatformSupport : public GpuPlatformSupport {
void OnAddGraphicsDevice(const base::FilePath& path,
const base::FileDescriptor& fd);
void OnRemoveGraphicsDevice(const base::FilePath& path);
+ void OnSetGammaRamp(int64_t id, const GammaRampRGBData& lut);
void SetIOTaskRunner(
const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner);

Powered by Google App Engine
This is Rietveld 408576698