зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1333505 - Some minor code cleanup. r=nical
MozReview-Commit-ID: 3qaIxt9To5j
This commit is contained in:
Родитель
29dfe5930f
Коммит
6297f79dd0
|
@ -104,7 +104,7 @@ RenderThread::GetRenderer(wr::WindowId aWindowId)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
return &*it->second;
|
||||
return it->second.get();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -66,7 +66,7 @@ public:
|
|||
|
||||
gl->fGetIntegerv(LOCAL_GL_MAX_TEXTURE_SIZE, mMaxTextureSize);
|
||||
|
||||
wr_gl_init(&*gl);
|
||||
wr_gl_init(gl.get());
|
||||
|
||||
WrRenderer* wrRenderer = nullptr;
|
||||
wr_window_new(aWindowId.mHandle, this->mEnableProfiler, mWrApi, &wrRenderer);
|
||||
|
@ -83,6 +83,7 @@ public:
|
|||
aRenderThread.AddRenderer(aWindowId, Move(renderer));
|
||||
}
|
||||
|
||||
private:
|
||||
WrAPI** mWrApi;
|
||||
GLint* mMaxTextureSize;
|
||||
layers::CompositorBridgeParentBase* mBridge;
|
||||
|
@ -111,6 +112,7 @@ public:
|
|||
layers::AutoCompleteTask complete(mTask);
|
||||
}
|
||||
|
||||
private:
|
||||
layers::SynchronousTask* mTask;
|
||||
};
|
||||
|
||||
|
@ -251,6 +253,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
private:
|
||||
bool mEnabled;
|
||||
};
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ namespace wr {
|
|||
|
||||
class DisplayListBuilder;
|
||||
class RendererOGL;
|
||||
class NewRenderer;
|
||||
class RendererEvent;
|
||||
|
||||
class WebRenderAPI
|
||||
|
@ -88,7 +87,6 @@ protected:
|
|||
wr::WindowId mId;
|
||||
GLint mMaxTextureSize;
|
||||
|
||||
friend class NewRenderer;
|
||||
friend class DisplayListBuilder;
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче