Skip to content

Commit

Permalink
PR feedback changes BoltsFramework#2
Browse files Browse the repository at this point in the history
  • Loading branch information
dnkv committed Sep 10, 2013
1 parent ce82b9f commit b529504
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions iOS/Canvas/Canvas/GL/BlurEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ using namespace fiftythree;
using namespace canvas;
using namespace common;

void GLBlurEffect::SetTextures(const GLBlurEffectTextures & tex)
void BlurEffect::SetTextures(const BlurEffectTextures & tex)
{
_BlurFBO = tex.BlurFBO;
_BlurTexture0 = tex.BlurTexture0;
_BlurTexture1 = tex.BlurTexture1;
_OutputTexture = tex.OutputTexture;
}

void GLBlurEffect::ClearBlur(GLESState & state)
void BlurEffect::ClearBlur(GLESState & state)
{
DebugGLGroupMarkerScopeGuard("Clear Blur");

Expand All @@ -44,7 +44,7 @@ void GLBlurEffect::ClearBlur(GLESState & state)
state.PopFramebuffer();
}

void GLBlurEffect::RenderEffect(const Renderer::Ptr & renderer)
void BlurEffect::RenderEffect(const Renderer::Ptr & renderer)
{
DebugGLGroupMarkerScopeGuard("Blur Output");

Expand Down
8 changes: 4 additions & 4 deletions iOS/Canvas/Canvas/GL/BlurEffect.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace fiftythree
namespace canvas
{

struct GLBlurEffectTextures
struct BlurEffectTextures
{
FramebufferObject::Ptr BlurFBO;
Texture::Ptr BlurTexture0;
Expand All @@ -24,7 +24,7 @@ struct GLBlurEffectTextures
Texture::Ptr OutputTexture;
};

class GLBlurEffect : public GLEffect
class BlurEffect : public Effect
{
FramebufferObject::Ptr _BlurFBO;
Texture::Ptr _BlurTexture0;
Expand All @@ -37,11 +37,11 @@ class GLBlurEffect : public GLEffect
void ClearBlur(GLESState & state);

public:
GLBlurEffect() : _ClearColor(0.0f,0.0f,0.0f,0.0f) {}
BlurEffect() : _ClearColor(0.0f,0.0f,0.0f,0.0f) {}

virtual void RenderEffect(const Renderer::Ptr & renderer);

void SetTextures(const GLBlurEffectTextures & tex);
void SetTextures(const BlurEffectTextures & tex);
};

}
Expand Down
2 changes: 1 addition & 1 deletion iOS/Canvas/Canvas/GL/Effect.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace fiftythree
namespace canvas
{

class GLEffect
class Effect
{
public:
virtual void RenderEffect(const Renderer::Ptr & renderer) = 0;
Expand Down
6 changes: 3 additions & 3 deletions iOS/Canvas/Canvas/GL/GLCompositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ class GLCompositorImpl : public GLCompositor
FramebufferObject::Ptr _BlurFBO;
Texture::Ptr _BlurTexture0;
Texture::Ptr _BlurTexture1;
GLBlurEffect _BlurEffect;
BlurEffect _BlurEffect;

Eigen::Affine3f _ToScreenTransform;

Expand Down Expand Up @@ -1006,7 +1006,7 @@ class GLCompositorImpl : public GLCompositor
_OutputTexture->SetTextureSampling(TextureSampling::Nearest);
}

// Lazily initialize buffers dependent on
// Lazily initialize buffers dependent on brush type
void EnsureLazyAllocatedBuffers(const Renderer::Ptr & renderer, const StrokeRenderable::Ptr & r)
{
size_t bufferWidth = round(_Bounds.Width * _Bounds.Scale);
Expand All @@ -1032,7 +1032,7 @@ class GLCompositorImpl : public GLCompositor
_BlurFBO = FramebufferObject::New();
_BlurFBO->Initialize();

GLBlurEffectTextures blurTextures;
BlurEffectTextures blurTextures;
blurTextures.BlurTexture0 = _BlurTexture0;
blurTextures.BlurTexture1 = _BlurTexture1;
blurTextures.BlurFBO = _BlurFBO;
Expand Down

0 comments on commit b529504

Please sign in to comment.