diff options
author | Derek Sollenberger <djsollen@google.com> | 2011-04-14 09:57:06 -0400 |
---|---|---|
committer | Derek Sollenberger <djsollen@google.com> | 2011-04-14 15:01:11 -0400 |
commit | 87b8e645865f9633f410c02252a0fd3feb18f09b (patch) | |
tree | 21e2521ed6f69bf466849f7c9579c37aa6b22b06 /src/gpu/SkGr.cpp | |
parent | 7f10e10e25231b613ebb242fa14ad8c924ce694f (diff) | |
download | external_skia-87b8e645865f9633f410c02252a0fd3feb18f09b.zip external_skia-87b8e645865f9633f410c02252a0fd3feb18f09b.tar.gz external_skia-87b8e645865f9633f410c02252a0fd3feb18f09b.tar.bz2 |
Skia Merge (revision 1116)
There is a companion change in external/webkit
Change-Id: I1c4110e7520bbef3f4e5f9551adb7ec79ac1e3ed
Diffstat (limited to 'src/gpu/SkGr.cpp')
-rw-r--r-- | src/gpu/SkGr.cpp | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp index e57f88a..e7e2365 100644 --- a/src/gpu/SkGr.cpp +++ b/src/gpu/SkGr.cpp @@ -166,10 +166,9 @@ void SkGrClipIterator::reset(const SkClipStack& clipStack) { GrClipType SkGrClipIterator::getType() const { GrAssert(!this->isDone()); - if (NULL != fCurr->fRect) { + if (NULL == fCurr->fPath) { return kRect_ClipType; } else { - GrAssert(NULL != fCurr->fPath); return kPath_ClipType; } } @@ -214,30 +213,25 @@ GrPathFill SkGrClipIterator::getPathFill() const { /////////////////////////////////////////////////////////////////////////////// -GrTexture::PixelConfig SkGr::BitmapConfig2PixelConfig(SkBitmap::Config config, +GrPixelConfig SkGr::BitmapConfig2PixelConfig(SkBitmap::Config config, bool isOpaque) { switch (config) { case SkBitmap::kA8_Config: - return GrTexture::kAlpha_8_PixelConfig; + return kAlpha_8_GrPixelConfig; case SkBitmap::kIndex8_Config: - return GrTexture::kIndex_8_PixelConfig; + return kIndex_8_GrPixelConfig; case SkBitmap::kRGB_565_Config: - return GrTexture::kRGB_565_PixelConfig; + return kRGB_565_GrPixelConfig; case SkBitmap::kARGB_4444_Config: - return GrTexture::kRGBA_4444_PixelConfig; + return kRGBA_4444_GrPixelConfig; case SkBitmap::kARGB_8888_Config: if (isOpaque) { - return GrTexture::kRGBX_8888_PixelConfig; + return kRGBX_8888_GrPixelConfig; } else { - return GrTexture::kRGBA_8888_PixelConfig; + return kRGBA_8888_GrPixelConfig; } default: - return GrTexture::kUnknown_PixelConfig; + return kUnknown_GrPixelConfig; } } -void SkGr::AbandonAllTextures(GrContext* ctx) { - ctx->abandonAllTextures(); -} - - |