summaryrefslogtreecommitdiffstats
path: root/cc/gl_renderer.h
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-14 07:13:48 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-14 07:13:48 +0000
commit66321643bdea820f7682d79dee3663610f26b95d (patch)
tree9f0302ed0ba4f944b52b780053cda804168e7791 /cc/gl_renderer.h
parentcf64404b033f544103752869df8ec97c3be10a5d (diff)
downloadchromium_src-66321643bdea820f7682d79dee3663610f26b95d.zip
chromium_src-66321643bdea820f7682d79dee3663610f26b95d.tar.gz
chromium_src-66321643bdea820f7682d79dee3663610f26b95d.tar.bz2
Allow using a larger-than-necessary texture as cached render pass backing
When moving a composited layer around the screen that requires a render pass, it's not all that unusual for the required size to be slightly different from frame to frame. This lets us use an oversized texture as the framebuffer attachment. BUG=161868 Review URL: https://chromiumcodereview.appspot.com/11420079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173112 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/gl_renderer.h')
-rw-r--r--cc/gl_renderer.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/cc/gl_renderer.h b/cc/gl_renderer.h
index 4cfdfc0..54119e3 100644
--- a/cc/gl_renderer.h
+++ b/cc/gl_renderer.h
@@ -97,7 +97,8 @@ private:
void drawCheckerboardQuad(const DrawingFrame&, const CheckerboardDrawQuad*);
void drawDebugBorderQuad(const DrawingFrame&, const DebugBorderDrawQuad*);
scoped_ptr<ScopedResource> drawBackgroundFilters(
- DrawingFrame&, const RenderPassDrawQuad*, const WebKit::WebFilterOperations&,
+ DrawingFrame&, const RenderPassDrawQuad*,
+ const WebKit::WebFilterOperations&,
const gfx::Transform& contentsDeviceTransform,
const gfx::Transform& contentsDeviceTransformInverse);
void drawRenderPassQuad(DrawingFrame&, const RenderPassDrawQuad*);
@@ -156,8 +157,8 @@ private:
typedef ProgramBinding<VertexShaderPosTex, FragmentShaderCheckerboard> TileCheckerboardProgram;
// Render surface shaders.
- typedef ProgramBinding<VertexShaderPosTex, FragmentShaderRGBATexAlpha> RenderPassProgram;
- typedef ProgramBinding<VertexShaderPosTex, FragmentShaderRGBATexAlphaMask> RenderPassMaskProgram;
+ typedef ProgramBinding<VertexShaderPosTexTransform, FragmentShaderRGBATexAlpha> RenderPassProgram;
+ typedef ProgramBinding<VertexShaderPosTexTransform, FragmentShaderRGBATexAlphaMask> RenderPassMaskProgram;
typedef ProgramBinding<VertexShaderQuad, FragmentShaderRGBATexAlphaAA> RenderPassProgramAA;
typedef ProgramBinding<VertexShaderQuad, FragmentShaderRGBATexAlphaMaskAA> RenderPassMaskProgramAA;