Flutter Engine
The Flutter Engine
Namespaces | Functions
GrTextureGenerator.cpp File Reference
#include "include/core/SkImageGenerator.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkSize.h"
#include "include/gpu/GrBackendSurface.h"
#include "include/gpu/GrRecordingContext.h"
#include "include/gpu/GrTypes.h"
#include "include/gpu/ganesh/GrExternalTextureGenerator.h"
#include "include/private/base/SkAssert.h"
#include "include/private/gpu/ganesh/GrTextureGenerator.h"
#include "include/private/gpu/ganesh/GrTypesPriv.h"
#include "src/gpu/RefCntedCallback.h"
#include "src/gpu/Swizzle.h"
#include "src/gpu/ganesh/GrCaps.h"
#include "src/gpu/ganesh/GrProxyProvider.h"
#include "src/gpu/ganesh/GrRecordingContextPriv.h"
#include "src/gpu/ganesh/GrSurfaceProxy.h"
#include "src/gpu/ganesh/GrSurfaceProxyView.h"
#include <cstdint>
#include <memory>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  skgpu
 

Functions

static void dispose_external_texture (void *context)
 

Function Documentation

◆ dispose_external_texture()

static void dispose_external_texture ( void *  context)
static

Definition at line 36 of file GrTextureGenerator.cpp.

36 {
37 // Reify the unique_ptr so that we delete the `GrExternalTexture` at the end of scope.
38 auto texture = std::unique_ptr<GrExternalTexture>(reinterpret_cast<GrExternalTexture *>(context));
39 texture->dispose();
40}
FlTexture * texture