mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 09:19:28 +00:00
Bug 839384: Fix build warnings for DrawTargetCG. r=jrmuizel
This commit is contained in:
parent
8cb536206d
commit
5f1e502515
@ -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;
|
||||
|
@ -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).
|
||||
|
Loading…
x
Reference in New Issue
Block a user