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

Unified Diff: ui/gfx/mojo/icc_profile_struct_traits.h

Issue 2652503002: Use SkICC in gfx::ICCProfile and gfx::ColorSpace (Closed)
Patch Set: Rebase Created 3 years, 11 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 | « ui/gfx/mojo/icc_profile.typemap ('k') | ui/gfx/mojo/icc_profile_struct_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/mojo/icc_profile_struct_traits.h
diff --git a/ui/gfx/mojo/icc_profile_struct_traits.h b/ui/gfx/mojo/icc_profile_struct_traits.h
deleted file mode 100644
index b80e1e876fb961bb67b85cb0c68ce3ed064c3fb9..0000000000000000000000000000000000000000
--- a/ui/gfx/mojo/icc_profile_struct_traits.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// 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 UI_GFX_MOJO_ICC_PROFILE_STRUCT_TRAITS_H_
-#define UI_GFX_MOJO_ICC_PROFILE_STRUCT_TRAITS_H_
-
-#include <algorithm>
-#include <memory>
-
-#include "base/strings/string_piece.h"
-#include "mojo/public/cpp/bindings/struct_traits.h"
-#include "ui/gfx/icc_profile.h"
-#include "ui/gfx/ipc/color/gfx_param_traits.h"
-#include "ui/gfx/mojo/icc_profile.mojom.h"
-
-namespace mojo {
-
-template <>
-struct StructTraits<gfx::mojom::ICCProfileDataView, gfx::ICCProfile> {
- static gfx::ICCProfile::Type type(const gfx::ICCProfile& profile) {
- return profile.type_;
- }
- static gfx::ColorSpace color_space(const gfx::ICCProfile& profile) {
- return profile.color_space_;
- }
- static base::StringPiece data(const gfx::ICCProfile& profile) {
- return base::StringPiece(profile.data_.data(), profile.data_.size());
- }
- static uint64_t id(const gfx::ICCProfile& profile) { return profile.id_; }
-
- static bool Read(gfx::mojom::ICCProfileDataView data,
- gfx::ICCProfile* profile);
-};
-
-} // namespace mojo
-
-#endif // UI_GFX_MOJO_ICC_PROFILE_STRUCT_TRAITS_H_
« no previous file with comments | « ui/gfx/mojo/icc_profile.typemap ('k') | ui/gfx/mojo/icc_profile_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698