summaryrefslogtreecommitdiffstats
path: root/gfx/skia/skia/src/image/SkRescaleAndReadPixels.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/skia/skia/src/image/SkRescaleAndReadPixels.h')
-rw-r--r--gfx/skia/skia/src/image/SkRescaleAndReadPixels.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/gfx/skia/skia/src/image/SkRescaleAndReadPixels.h b/gfx/skia/skia/src/image/SkRescaleAndReadPixels.h
new file mode 100644
index 0000000000..ab555d4316
--- /dev/null
+++ b/gfx/skia/skia/src/image/SkRescaleAndReadPixels.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "include/core/SkImage.h"
+
+class SkBitmap;
+struct SkIRect;
+struct SkImageInfo;
+
+/** Generic/synchronous implementation for SkImage:: and SkSurface::asyncRescaleAndReadPixels. */
+void SkRescaleAndReadPixels(SkBitmap src,
+ const SkImageInfo& resultInfo,
+ const SkIRect& srcRect,
+ SkImage::RescaleGamma,
+ SkImage::RescaleMode,
+ SkImage::ReadPixelsCallback,
+ SkImage::ReadPixelsContext);