commit | f8f45d91b2e7e841719ed1d80ee74f68aeb8d0ec | [log] [tgz] |
---|---|---|
author | Robert Phillips <robertphillips@google.com> | Wed Jul 01 11:11:18 2020 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Wed Jul 01 16:30:03 2020 +0000 |
tree | 6749076b24f568b05c4360167af82d424634588d | |
parent | d2f870c9110272a65cbc27da5ec670f3bd17494e [diff] [blame] |
Make asDirectContext public External clients will eventually have to call this to get access to a direct context from an SkCanvas or SkSurface (which will only have 'recordingContext' accessors). Bug: skia:10441 Change-Id: I10e34081277b685fa59d03e1fce1887f3524e0fa Reviewed-on: https://skia-review.googlesource.com/c/skia/+/300178 Reviewed-by: Adlai Holler <adlai@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrAHardwareBufferImageGenerator.cpp b/src/gpu/GrAHardwareBufferImageGenerator.cpp index 4bb2c91..7c45332 100644 --- a/src/gpu/GrAHardwareBufferImageGenerator.cpp +++ b/src/gpu/GrAHardwareBufferImageGenerator.cpp
@@ -85,7 +85,7 @@ return {}; } - auto direct = context->priv().asDirectContext(); + auto direct = context->asDirectContext(); if (!direct) { return {}; }