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

Unified Diff: skia/ext/skia_encode_image.cc

Issue 2865363002: Compile Skia image encoders (Closed)
Patch Set: Fix ios and win Created 3 years, 7 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 | « skia/ext/skia_encode_image.h ('k') | third_party/libwebp/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/skia_encode_image.cc
diff --git a/skia/ext/skia_encode_image.cc b/skia/ext/skia_encode_image.cc
deleted file mode 100644
index bb6820fcdf585a800a4f915979289f4adcccfaeb..0000000000000000000000000000000000000000
--- a/skia/ext/skia_encode_image.cc
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright (c) 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.
-
-#include "skia/ext/skia_encode_image.h"
-
-#include "third_party/skia/include/core/SkImageEncoder.h"
-
-static skia::ImageEncoderFunction g_image_encoder = nullptr;
-
-void skia::SetImageEncoder(skia::ImageEncoderFunction image_encoder) {
- g_image_encoder = image_encoder;
-}
-
-bool SkEncodeImage(SkWStream* stream,
- const SkPixmap& pixmap,
- SkEncodedImageFormat format,
- int quality) {
- skia::ImageEncoderFunction encoder = g_image_encoder;
- return encoder && encoder(stream, pixmap, format, quality);
-}
« no previous file with comments | « skia/ext/skia_encode_image.h ('k') | third_party/libwebp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698