aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSWMaskHelper.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-10-14 11:47:22 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-14 11:47:22 -0700
commite30597375c19dfb5197fd065a3d1768401eb00fa (patch)
treed61474ce6dc1ed158456299951a194800e119ad4 /src/gpu/GrSWMaskHelper.h
parentec87dc64dd40c1a4f80088023c94764caca79bf9 (diff)
Remove uses of GrAutoScratchTexture.
Rename GrContext::lockAndRefScratchTexture to refScratchTexture. GrSurface::writePixels returns bool instead of void. BUG=skia:2889 Review URL: https://codereview.chromium.org/638403003
Diffstat (limited to 'src/gpu/GrSWMaskHelper.h')
-rw-r--r--src/gpu/GrSWMaskHelper.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gpu/GrSWMaskHelper.h b/src/gpu/GrSWMaskHelper.h
index b23ee2c7c0..e758c092d2 100644
--- a/src/gpu/GrSWMaskHelper.h
+++ b/src/gpu/GrSWMaskHelper.h
@@ -18,7 +18,6 @@
#include "SkTextureCompressor.h"
#include "SkTypes.h"
-class GrAutoScratchTexture;
class GrContext;
class GrTexture;
class SkPath;
@@ -61,10 +60,6 @@ public:
void draw(const SkPath& path, const SkStrokeRec& stroke, SkRegion::Op op,
bool antiAlias, uint8_t alpha);
- // Helper function to get a scratch texture suitable for capturing the
- // result (i.e., right size & format)
- bool getTexture(GrAutoScratchTexture* texture);
-
// Move the mask generation results from the internal bitmap to the gpu.
void toTexture(GrTexture* texture);
@@ -100,6 +95,10 @@ public:
const SkIRect& rect);
private:
+ // Helper function to get a scratch texture suitable for capturing the
+ // result (i.e., right size & format)
+ GrTexture* createTexture();
+
GrContext* fContext;
SkMatrix fMatrix;
SkBitmap fBM;