Bug 839384: Fix build warnings for DrawTargetCG. r=jrmuizel

This commit is contained in:
Daniel Holbert 2013-02-12 20:00:54 -08:00
parent 8cb536206d
commit 5f1e502515
2 changed files with 3 additions and 5 deletions

View File

@ -122,7 +122,7 @@ CGBlendMode ToBlendMode(CompositionOp op)
DrawTargetCG::DrawTargetCG() : mSnapshot(nullptr), mCg(nullptr)
DrawTargetCG::DrawTargetCG() : mCg(nullptr), mSnapshot(nullptr)
{
}
@ -1029,8 +1029,8 @@ DrawTargetCG::CreatePathBuilder(FillRule aFillRule) const
void*
DrawTargetCG::GetNativeSurface(NativeSurfaceType aType)
{
if (aType == NATIVE_SURFACE_CGCONTEXT && GetContextType(mCg) == CG_CONTEXT_TYPE_BITMAP ||
aType == NATIVE_SURFACE_CGCONTEXT_ACCELERATED && GetContextType(mCg) == CG_CONTEXT_TYPE_IOSURFACE) {
if ((aType == NATIVE_SURFACE_CGCONTEXT && GetContextType(mCg) == CG_CONTEXT_TYPE_BITMAP) ||
(aType == NATIVE_SURFACE_CGCONTEXT_ACCELERATED && GetContextType(mCg) == CG_CONTEXT_TYPE_IOSURFACE)) {
return mCg;
} else {
return nullptr;

View File

@ -151,8 +151,6 @@ private:
CGColorSpaceRef mColorSpace;
CGContextRef mCg;
GLuint mIOSurfaceTexture;
/**
* A pointer to the image buffer if the buffer is owned by this class (set to
* nullptr otherwise).