mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 978086: Fix initialization order in LayerRenderState, r=nical
C++ requires constructors to initialize fields in the order of the fields' definitions.
This commit is contained in:
parent
69489486ed
commit
017247c471
@ -89,7 +89,7 @@ enum LayerRenderStateFlags {
|
||||
struct LayerRenderState {
|
||||
LayerRenderState()
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
: mSurface(nullptr), mFlags(0), mHasOwnOffset(false), mTexture(nullptr)
|
||||
: mSurface(nullptr), mTexture(nullptr), mFlags(0), mHasOwnOffset(false)
|
||||
#endif
|
||||
{}
|
||||
|
||||
@ -100,9 +100,9 @@ struct LayerRenderState {
|
||||
TextureHost* aTexture)
|
||||
: mSurface(aSurface)
|
||||
, mSize(aSize)
|
||||
, mTexture(aTexture)
|
||||
, mFlags(aFlags)
|
||||
, mHasOwnOffset(false)
|
||||
, mTexture(aTexture)
|
||||
{}
|
||||
|
||||
bool YFlipped() const
|
||||
|
Loading…
Reference in New Issue
Block a user