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

Unified Diff: components/suggestions/image_encoder.h

Issue 634273002: Revert of [Suggestions] Create ImageEncoder, to abstract away image encode/decode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « components/suggestions/BUILD.gn ('k') | components/suggestions/image_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/suggestions/image_encoder.h
diff --git a/components/suggestions/image_encoder.h b/components/suggestions/image_encoder.h
deleted file mode 100644
index 14e511eeda0039fe01d57dfd9160dbab14dc18f5..0000000000000000000000000000000000000000
--- a/components/suggestions/image_encoder.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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 COMPONENTS_SUGGESTIONS_IMAGE_ENCODER_H_
-#define COMPONENTS_SUGGESTIONS_IMAGE_ENCODER_H_
-
-#include <vector>
-
-#include "base/macros.h"
-
-class SkBitmap;
-
-namespace suggestions {
-
-// A interface to encode/decode images.
-class ImageEncoder {
- public:
- ImageEncoder() {}
- virtual ~ImageEncoder() {}
-
- // From encoded bytes to SkBitmap. Caller owns the returned pointer.
- virtual SkBitmap* DecodeImage(
- const std::vector<unsigned char>& encoded_data) = 0;
-
- // From SkBitmap to the vector of encoded bytes, |dst|.
- virtual bool EncodeImage(
- const SkBitmap& bitmap, std::vector<unsigned char>* dest) = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(ImageEncoder);
-};
-
-} // namespace suggestions
-
-#endif // COMPONENTS_SUGGESTIONS_IMAGE_ENCODER_H_
« no previous file with comments | « components/suggestions/BUILD.gn ('k') | components/suggestions/image_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698