aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-07-13 15:42:40 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-13 15:42:40 -0700
commit614d8f9a3c44e22d77fa909e82119e8a6746e1b1 (patch)
tree1f74273dc1f959cdf3a596122e5af92d5cb44434 /src
parenta2e0837c3395831ff02a2f35469b4fa98963c560 (diff)
Remove GrWrapTextureInBitmap from public API
Diffstat (limited to 'src')
-rw-r--r--src/core/SkCanvas.cpp2
-rw-r--r--src/gpu/SkGrPriv.h7
2 files changed, 8 insertions, 1 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 0bd3851c06..6119c4ff2f 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -41,7 +41,7 @@
#if SK_SUPPORT_GPU
#include "GrContext.h"
#include "GrRenderTarget.h"
-#include "SkGr.h"
+#include "SkGrPriv.h"
#endif
#define RETURN_ON_NULL(ptr) do { if (nullptr == (ptr)) return; } while (0)
diff --git a/src/gpu/SkGrPriv.h b/src/gpu/SkGrPriv.h
index ab77dc1e79..b38ce362c1 100644
--- a/src/gpu/SkGrPriv.h
+++ b/src/gpu/SkGrPriv.h
@@ -100,6 +100,13 @@ bool SkPaintToGrPaintWithTexture(GrContext* context,
//////////////////////////////////////////////////////////////////////////////
+// Using the dreaded SkGrPixelRef ...
+void GrWrapTextureInBitmap(GrTexture* src, int w, int h, bool isOpaque,
+ SkBitmap* dst);
+
+
+//////////////////////////////////////////////////////////////////////////////
+
GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo&, const GrCaps&);
bool GrPixelConfigToColorAndColorSpace(GrPixelConfig, SkColorType*, sk_sp<SkColorSpace>*);