Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
ganesh
image
SkImage_LazyTexture.h
Go to the documentation of this file.
1
/*
2
* Copyright 2023 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 SkImage_LazyTexture_DEFINED
8
#define SkImage_LazyTexture_DEFINED
9
10
#include "
include/core/SkRefCnt.h
"
11
#include "
include/core/SkTypes.h
"
12
#include "
src/image/SkImage_Lazy.h
"
13
14
class
GrDirectContext
;
15
class
SkImage
;
16
class
SkPixmap
;
17
struct
SkIRect
;
18
19
class
SkImage_LazyTexture
final :
public
SkImage_Lazy
{
20
public
:
21
SkImage_LazyTexture
(
SkImage_Lazy::Validator
*validator) :
SkImage_Lazy
(validator) {}
22
23
bool
readPixelsProxy
(
GrDirectContext
*,
const
SkPixmap
&)
const override
;
24
25
sk_sp<SkImage>
onMakeSubset
(
GrDirectContext
*,
const
SkIRect
&)
const override
;
26
};
27
28
#endif
SkImage_Lazy.h
SkRefCnt.h
SkTypes.h
GrDirectContext
Definition:
GrDirectContext.h:60
SkImage_LazyTexture
Definition:
SkImage_LazyTexture.h:19
SkImage_LazyTexture::onMakeSubset
sk_sp< SkImage > onMakeSubset(GrDirectContext *, const SkIRect &) const override
Definition:
SkImage_LazyTexture.cpp:32
SkImage_LazyTexture::SkImage_LazyTexture
SkImage_LazyTexture(SkImage_Lazy::Validator *validator)
Definition:
SkImage_LazyTexture.h:21
SkImage_LazyTexture::readPixelsProxy
bool readPixelsProxy(GrDirectContext *, const SkPixmap &) const override
Definition:
SkImage_LazyTexture.cpp:39
SkImage_Lazy
Definition:
SkImage_Lazy.h:38
SkImage
Definition:
SkImage.h:272
SkPixmap
Definition:
SkPixmap.h:40
sk_sp< SkImage >
SkIRect
Definition:
SkRect.h:32
SkImage_Lazy::Validator
Definition:
SkImage_Lazy.h:40
Generated on Sun Jun 23 2024 21:56:22 for Flutter Engine by
1.9.4