work around bug 8051

turn off the example that generates the failing fiddle

Docs-Preview: https://skia.org/?cl=132401
Bug: skia:8051
NOTRY=true
Change-Id: Ic018dbf9ba4f3b7d948660ca2946291ec37f3555
Reviewed-on: https://skia-review.googlesource.com/132401
Commit-Queue: Cary Clark <caryclark@skia.org>
Auto-Submit: Cary Clark <caryclark@skia.org>
Reviewed-by: Cary Clark <caryclark@skia.org>
This commit is contained in:
Cary Clark 2018-06-06 08:26:45 -04:00 committed by Skia Commit-Bot
parent c27967f3a4
commit 31cb864fdb
3 changed files with 2 additions and 13 deletions

View File

@ -2117,7 +2117,8 @@ Bitmap write did not succeed.
#Return true if Bitmap was created ##
#Example
#NoExample
#Bug 8051
#Image 4
#Platform gpu
SkBitmap bitImage;

View File

@ -2619,10 +2619,6 @@ Returns true if <a href='SkBitmap_Reference#Bitmap'>Bitmap</a> is stored in <a h
true if <a href='SkBitmap_Reference#Bitmap'>Bitmap</a> was created
### Example
<div><fiddle-embed name="5d88bd87c3585a5dfeca39c2ebd08e52" gpu="true"></fiddle-embed></div>
### See Also
<a href='#SkImage_MakeRasterData'>MakeRasterData</a> <a href='#SkImage_makeRasterImage'>makeRasterImage</a> <a href='#SkImage_makeNonTextureImage'>makeNonTextureImage</a>

View File

@ -5340,14 +5340,6 @@
"hash": "1b9f1f05026ceb14ccb6926a13cdaa83",
"file": "SkImage_Reference",
"name": "SkImage::alphaType"
},
"SkImage_asLegacyBitmap": {
"code": "void draw(SkCanvas* canvas) {\n SkBitmap bitImage;\n if (image->asLegacyBitmap(&bitImage, SkImage::kRO_LegacyBitmapMode)) {\n canvas->drawBitmap(bitImage, 0, 0);\n }\n GrContext* grContext = canvas->getGrContext();\n if (!grContext) {\n return;\n }\n sk_sp<SkImage> textureImage(SkImage::MakeFromTexture(grContext, backEndTexture,\n kTopLeft_GrSurfaceOrigin, kN32_SkColorType, kOpaque_SkAlphaType,\n nullptr));\n canvas->drawImage(textureImage, 45, 45);\n if (textureImage->asLegacyBitmap(&bitImage, SkImage::kRO_LegacyBitmapMode)) {\n canvas->drawBitmap(bitImage, 90, 90);\n }\n}",
"width": 256,
"height": 256,
"hash": "5d88bd87c3585a5dfeca39c2ebd08e52",
"file": "SkImage_Reference",
"name": "SkImage::asLegacyBitmap"
},
"SkImage_bounds": {
"code": "void draw(SkCanvas* canvas) {\n SkIRect bounds = image->bounds();\n for (int x : { 0, bounds.width() } ) {\n for (int y : { 0, bounds.height() } ) {\n canvas->drawImage(image, x, y);\n }\n }\n}",