remove SkError
It has not caught on.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3321
Change-Id: Ib2ee4ef99bc89c8f4b7504e42a9d7d9dfc483015
Reviewed-on: https://skia-review.googlesource.com/3321
Reviewed-by: Leon Scroggins <scroggo@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index d4d361d..0957412 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -17,7 +17,6 @@
#include "SkCanvasPriv.h"
#include "SkDraw.h"
-#include "SkErrorInternals.h"
#include "SkGlyphCache.h"
#include "SkGr.h"
#include "SkGrPriv.h"
@@ -242,7 +241,7 @@
SkBudgeted budgeted = fDrawContext->drawContextPriv().isBudgeted();
- sk_sp<GrDrawContext> newDC(MakeDrawContext(this->context(),
+ sk_sp<GrDrawContext> newDC(MakeDrawContext(this->context(),
budgeted,
this->imageInfo(),
fDrawContext->numColorSamples(),
@@ -1123,7 +1122,7 @@
}
-void SkGpuDevice::drawSpecial(const SkDraw& draw,
+void SkGpuDevice::drawSpecial(const SkDraw& draw,
SkSpecialImage* special1,
int left, int top,
const SkPaint& paint) {
@@ -1791,10 +1790,7 @@
kDefault_GrSurfaceOrigin,
&props));
if (!dc) {
- SkErrorInternals::SetError( kInternalError_SkError,
- "---- failed to create gpu device texture [%d %d]\n",
- cinfo.fInfo.width(), cinfo.fInfo.height());
- return nullptr;
+ return nullptr;
}
// Skia's convention is to only clear a device if it is non-opaque.