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

Unified Diff: ui/gfx/ipc/skia/gfx_skia_param_traits.h

Issue 1824993004: Separate gfx_ipc into skia-dependent and non-skia-dependent parts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits from tsepez@ Created 4 years, 9 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/gfx/ipc/skia/gfx_skia_param_traits.h
diff --git a/content/common/media/media_param_traits.h b/ui/gfx/ipc/skia/gfx_skia_param_traits.h
similarity index 52%
copy from content/common/media/media_param_traits.h
copy to ui/gfx/ipc/skia/gfx_skia_param_traits.h
index 70675edba3e9df531ca7f78d8c5b2ee51f311e0d..d3acc9308656956fc96d0b363ce6344a5d423464 100644
--- a/content/common/media/media_param_traits.h
+++ b/ui/gfx/ipc/skia/gfx_skia_param_traits.h
@@ -1,24 +1,32 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2016 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 CONTENT_COMMON_MEDIA_MEDIA_PARAM_TRAITS_H_
-#define CONTENT_COMMON_MEDIA_MEDIA_PARAM_TRAITS_H_
+#ifndef UI_GFX_IPC_GFX_SKIA_PARAM_TRAITS_H_
+#define UI_GFX_IPC_GFX_SKIA_PARAM_TRAITS_H_
-#include "content/common/content_export.h"
-#include "ipc/ipc_message.h"
+#include <string>
+
+#include "ipc/ipc_message_utils.h"
#include "ipc/ipc_param_traits.h"
+#include "ui/gfx/ipc/skia/gfx_skia_ipc_export.h"
+
+class SkBitmap;
+
+namespace base {
+class Pickle;
+class PickleIterator;
+}
-namespace media {
-class AudioParameters;
-struct VideoCaptureFormat;
+namespace gfx {
+class Transform;
}
namespace IPC {
template <>
-struct CONTENT_EXPORT ParamTraits<media::AudioParameters> {
- typedef media::AudioParameters param_type;
+struct GFX_SKIA_IPC_EXPORT ParamTraits<SkBitmap> {
+ using param_type = SkBitmap;
static void Write(base::Pickle* m, const param_type& p);
static bool Read(const base::Pickle* m,
base::PickleIterator* iter,
@@ -27,8 +35,8 @@ struct CONTENT_EXPORT ParamTraits<media::AudioParameters> {
};
template <>
-struct CONTENT_EXPORT ParamTraits<media::VideoCaptureFormat> {
- typedef media::VideoCaptureFormat param_type;
+struct GFX_SKIA_IPC_EXPORT ParamTraits<gfx::Transform> {
+ using param_type = gfx::Transform;
static void Write(base::Pickle* m, const param_type& p);
static bool Read(const base::Pickle* m,
base::PickleIterator* iter,
@@ -36,6 +44,6 @@ struct CONTENT_EXPORT ParamTraits<media::VideoCaptureFormat> {
static void Log(const param_type& p, std::string* l);
};
-} // namespace IPC
+} // namespace IPC
-#endif // CONTENT_COMMON_MEDIA_MEDIA_PARAM_TRAITS_H_
+#endif // UI_GFX_IPC_GFX_SKIA_PARAM_TRAITS_H_

Powered by Google App Engine
This is Rietveld 408576698