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:
Florin Malita 2020-09-22 08:51:43 -04:00 committed by Skia Commit-Bot
parent d8efe7029b
commit 8b5ed02eb0
2 changed files with 2 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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));