diff options
author | Brian Salomon <bsalomon@google.com> | 2017-11-16 10:17:20 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-16 16:30:53 +0000 |
commit | 5627d65146cb92624b682389e017d488872228c7 (patch) | |
tree | 9b90fe789341a23d05dc0e896eeafc1a20b70a26 /gn | |
parent | 47f6029d3dc5ee9e484931a13a14dcbe9d3f23d3 (diff) |
Add method to sk_gpu_test::TestContext to automatically restore the previous context.
The motivation for this is to allow a GM to create a GL context, do some some work in it, and then return to the context that was set when it was invoked.
Change-Id: Ie8496072a10f8f3ff36a08889e593a6ca961b61a
Reviewed-on: https://skia-review.googlesource.com/70720
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'gn')
-rw-r--r-- | gn/core.gni | 1 | ||||
-rw-r--r-- | gn/pdf.gni | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/gn/core.gni b/gn/core.gni index 358c3875c8..186e5af454 100644 --- a/gn/core.gni +++ b/gn/core.gni @@ -272,6 +272,7 @@ skia_core_sources = [ "$_src/core/SkScan_Antihair.cpp", "$_src/core/SkScan_Hairline.cpp", "$_src/core/SkScan_Path.cpp", + "$_src/core/SkScopeExit.h", "$_src/core/SkSemaphore.cpp", "$_src/core/SkSharedMutex.cpp", "$_src/core/SkSharedMutex.h", diff --git a/gn/pdf.gni b/gn/pdf.gni index 355c27a4a8..665e35c2f8 100644 --- a/gn/pdf.gni +++ b/gn/pdf.gni @@ -46,5 +46,4 @@ skia_pdf_sources = [ "$_src/pdf/SkPDFTypes.h", "$_src/pdf/SkPDFUtils.cpp", "$_src/pdf/SkPDFUtils.h", - "$_src/pdf/SkScopeExit.h", ] |