#include <embedder_external_texture_gl.h>
◆ ExternalTextureCallback
◆ EmbedderExternalTextureGL()
flutter::EmbedderExternalTextureGL::EmbedderExternalTextureGL |
( |
int64_t |
texture_identifier, |
|
|
const ExternalTextureCallback & |
callback |
|
) |
| |
◆ ~EmbedderExternalTextureGL()
flutter::EmbedderExternalTextureGL::~EmbedderExternalTextureGL |
( |
| ) |
|
|
default |
◆ MarkNewFrameAvailable()
void flutter::EmbedderExternalTextureGL::MarkNewFrameAvailable |
( |
| ) |
|
|
overrideprivatevirtual |
◆ OnGrContextCreated()
void flutter::EmbedderExternalTextureGL::OnGrContextCreated |
( |
| ) |
|
|
overrideprivatevirtual |
◆ OnGrContextDestroyed()
void flutter::EmbedderExternalTextureGL::OnGrContextDestroyed |
( |
| ) |
|
|
overrideprivatevirtual |
◆ OnTextureUnregistered()
void flutter::EmbedderExternalTextureGL::OnTextureUnregistered |
( |
| ) |
|
|
overrideprivatevirtual |
◆ Paint()
Implements flutter::Texture.
Definition at line 33 of file embedder_external_texture_gl.cc.
36 {
37 if (last_image_ == nullptr) {
38 last_image_ =
40 context.gr_context,
42 );
43 }
44
45 DlCanvas* canvas = context.canvas;
46 const DlPaint*
paint = context.paint;
47
48 if (last_image_) {
50 if (bounds != image_bounds) {
51 canvas->DrawImageRect(last_image_, image_bounds, bounds, sampling,
paint);
52 } else {
54 }
55 }
56}
Optional< SkRect > bounds
SkSamplingOptions sampling
static constexpr SkISize Make(int32_t w, int32_t h)
static SkRect Make(const SkISize &size)
The documentation for this class was generated from the following files: