Skip to content

Commit

Permalink
Solved 2 warnings
Browse files Browse the repository at this point in the history
Problem: reorder and unused variables
  • Loading branch information
verpeteren committed Mar 13, 2017
1 parent 8889794 commit 455ef9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
5 changes: 3 additions & 2 deletions src/Binding/JSWebGL.cpp
Expand Up @@ -1304,8 +1304,9 @@ bool JSWebGLRenderingContext::JS_depthRange(JSContext *cx, JS::CallArgs &args)

bool JSWebGLRenderingContext::JS_detachShader(JSContext *cx, JS::CallArgs &args)
{
JSWebGLProgram *webglProgram;
JSWebGLShader *webglShader;
//JSWebGLProgram *webglProgram;
//JSWebGLShader *webglShader;


JS::RootedObject program(cx);
JS::RootedObject shader(cx);
Expand Down
12 changes: 5 additions & 7 deletions src/Graphics/SkiaContext.cpp
Expand Up @@ -200,15 +200,13 @@ static inline bool isBreakable(const unsigned char c)
}

SkiaContext::SkiaContext()
: m_State(NULL), m_PaintSystem(NULL), m_CurrentPath(NULL), m_GlobalAlpha(0),
: m_CanvasBindMode(SkiaContext::BIND_NO), m_State(NULL),
m_PaintSystem(NULL), m_CurrentPath(NULL), m_GlobalAlpha(0),
m_AsComposite(0), m_Screen(NULL), m_CurrentShadow({ 0, 0, 0, 0 }),
m_Debug(false), m_FontSkew(-0.25),
m_CanvasBindMode(SkiaContext::BIND_NO)
m_Debug(false), m_FontSkew(-0.25)
{
}



SkColor
makeRGBAFromHSLA(double hue, double saturation, double lightness, double alpha)
{
Expand Down Expand Up @@ -340,7 +338,7 @@ SkiaContext *SkiaContext::CreateWithTextureBackend(Frontend::Context *fctx,
float ratio = SystemInterface::GetInstance()->backingStorePixelRatio();

GrContext *gr = GetGrContext(fctx);

sk_sp<SkSurface> surface = SkSurface::MakeRenderTarget(gr, SkBudgeted::kNo,
SkImageInfo::MakeN32Premul(ceilf(width * ratio), ceilf(height * ratio)));

Expand Down Expand Up @@ -425,7 +423,7 @@ GrContext *SkiaContext::CreateGrContext(GLContext *glcontext)
return nullptr;
}

context->setResourceCacheLimits(NIDIUM_SKIA_CACHE_MAX_RESOURCES,
context->setResourceCacheLimits(NIDIUM_SKIA_CACHE_MAX_RESOURCES,
NIDIUM_SKIA_CACHE_MAX_BYTES);

return context;
Expand Down

0 comments on commit 455ef9f

Please sign in to comment.