Fix skia_use_ffmpeg builds
... post https://skia-review.googlesource.com/c/skia/+/317109 Change-Id: I7286fd6d7598a50a1db452f04a28317c600f4984 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/318477 Commit-Queue: Adlai Holler <adlai@google.com> Auto-Submit: Florin Malita <fmalita@chromium.org> Reviewed-by: Adlai Holler <adlai@google.com>
This commit is contained in:
parent
d8efe7029b
commit
8b5ed02eb0
@ -34,7 +34,7 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void onDraw(SkCanvas* canvas) override {
|
void onDraw(SkCanvas* canvas) override {
|
||||||
GrContext* rContext = canvas->recordingContext();
|
auto* rContext = canvas->recordingContext();
|
||||||
if (!rContext) {
|
if (!rContext) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -146,7 +146,7 @@ int main(int argc, char** argv) {
|
|||||||
SkSurface::RescaleGamma::kSrc,
|
SkSurface::RescaleGamma::kSrc,
|
||||||
kNone_SkFilterQuality,
|
kNone_SkFilterQuality,
|
||||||
read_pixels_cb, &asyncRec);
|
read_pixels_cb, &asyncRec);
|
||||||
surf->getContext()->submit();
|
context->submit();
|
||||||
} else {
|
} else {
|
||||||
SkPixmap pm;
|
SkPixmap pm;
|
||||||
SkAssertResult(surf->peekPixels(&pm));
|
SkAssertResult(surf->peekPixels(&pm));
|
||||||
|
Loading…
Reference in New Issue
Block a user