Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
perspimages.cpp File Reference
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkImage.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPaint.h"
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkSize.h"
#include "include/core/SkString.h"
#include "include/private/base/SkTArray.h"
#include "include/private/base/SkTDArray.h"
#include "tools/DecodeUtils.h"
#include "tools/GpuToolUtils.h"
#include "tools/Resources.h"
#include "tools/ToolUtils.h"
#include <initializer_list>

Go to the source code of this file.

Classes

class  skiagm::PerspImages
 

Namespaces

namespace  skiagm
 

Functions

static sk_sp< SkImagemake_image1 ()
 
static sk_sp< SkImagemake_image2 ()
 

Function Documentation

◆ make_image1()

static sk_sp< SkImage > make_image1 ( )
static

Definition at line 28 of file perspimages.cpp.

28 {
29 return ToolUtils::GetResourceAsImage("images/mandrill_128.png");
30}
sk_sp< SkImage > GetResourceAsImage(const char *resource)
Definition DecodeUtils.h:25

◆ make_image2()

static sk_sp< SkImage > make_image2 ( )
static

Definition at line 32 of file perspimages.cpp.

32 {
33 return ToolUtils::GetResourceAsImage("images/brickwork-texture.jpg")
34 ->makeSubset(nullptr, {0, 0, 128, 128});
35}
virtual sk_sp< SkImage > makeSubset(GrDirectContext *direct, const SkIRect &subset) const =0