From a0ca909142ba4fd33a1b2750f551e7edbb4b98f1 Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Thu, 10 May 2018 22:04:08 +0000 Subject: Revert "Remove GrBackendObject and all related functions from Skia." This reverts commit ccd4cfc23ebbbecbc6b292359352aad335ad7b73. Reason for revert: Fuchsia not building again. (Flutter roll may have been reverted?) Original change's description: > Remove GrBackendObject and all related functions from Skia. > > Bug: skia: > Change-Id: I59434b7477c0bc26fd982bd81eb97ab94bbba073 > Reviewed-on: https://skia-review.googlesource.com/125822 > Reviewed-by: Brian Salomon > Commit-Queue: Greg Daniel TBR=egdaniel@google.com,bsalomon@google.com,robertphillips@google.com Change-Id: Ie2c518b84b0c9513c0c622082de2831088b1ad8d No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: skia: Reviewed-on: https://skia-review.googlesource.com/127480 Reviewed-by: Brian Osman Commit-Queue: Brian Osman --- include/gpu/GrTypes.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/gpu/GrTypes.h') diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h index f908d1e1f6..d0e977ebc1 100644 --- a/include/gpu/GrTypes.h +++ b/include/gpu/GrTypes.h @@ -207,6 +207,14 @@ enum class GrMipMapped : bool { /////////////////////////////////////////////////////////////////////////////// +#ifdef SK_SUPPORT_LEGACY_BACKEND_OBJECTS +/** + * Opaque type for 3D API object handles. We are moving away from this type and towards type-safe + * GrBackend* classes (e.g. GrBackendTexture). However, not all replacement APIs are in place yet. + */ +typedef intptr_t GrBackendObject; +#endif + /** * GPU SkImage and SkSurfaces can be stored such that (0, 0) in texture space may correspond to * either the top-left or bottom-left content pixel. -- cgit v1.2.3