Flutter Engine
The Flutter Engine
|
#include "tools/gpu/ganesh/GrAtlasTools.h"
#include "include/core/SkAlphaType.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkColorType.h"
#include "include/core/SkDataTable.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkStream.h"
#include "include/core/SkString.h"
#include "include/encode/SkPngEncoder.h"
#include "include/gpu/GrDirectContext.h"
#include "include/private/base/SkDebug.h"
#include "src/gpu/ganesh/GrDirectContextPriv.h"
#include "src/gpu/ganesh/GrSurfaceProxy.h"
#include "src/gpu/ganesh/GrSurfaceProxyView.h"
#include "src/gpu/ganesh/SurfaceContext.h"
#include <cstdio>
#include <utility>
Go to the source code of this file.
Functions | |
static bool | save_pixels (GrDirectContext *dContext, GrSurfaceProxyView view, GrColorType colorType, const char *filename) |
|
static |
Write the contents of the surface proxy to a PNG. Returns true if successful.
filename | Full path to desired file |
Definition at line 33 of file GrAtlasTools.cpp.