Flutter Engine
The Flutter Engine
SkRescaleAndReadPixels.h
Go to the documentation of this file.
1/*
2 * Copyright 2020 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7#ifndef SkRescaleAndReadPixels_DEFINED
8#define SkRescaleAndReadPixels_DEFINED
9
11
12class SkBitmap;
13struct SkIRect;
14struct SkImageInfo;
15
16/** Generic/synchronous implementation for SkImage:: and SkSurface::asyncRescaleAndReadPixels. */
18 const SkImageInfo& resultInfo,
19 const SkIRect& srcRect,
24
25#endif // SkRescaleAndReadPixels_DEFINED
void SkRescaleAndReadPixels(SkBitmap src, const SkImageInfo &resultInfo, const SkIRect &srcRect, SkImage::RescaleGamma, SkImage::RescaleMode, SkImage::ReadPixelsCallback, SkImage::ReadPixelsContext)
void * ReadPixelsContext
Definition: SkImage.h:578
RescaleMode
Definition: SkImage.h:587
RescaleGamma
Definition: SkImage.h:585
void(ReadPixelsContext, std::unique_ptr< const AsyncReadResult >) ReadPixelsCallback
Definition: SkImage.h:583
Definition: SkRect.h:32