Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: cc/output/gl_renderer.h

Issue 12571010: cc: Add a pixel test for background blur outsets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_OUTPUT_GL_RENDERER_H_ 5 #ifndef CC_OUTPUT_GL_RENDERER_H_
6 #define CC_OUTPUT_GL_RENDERER_H_ 6 #define CC_OUTPUT_GL_RENDERER_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/output/direct_renderer.h" 9 #include "cc/output/direct_renderer.h"
10 #include "cc/output/gl_renderer_draw_cache.h" 10 #include "cc/output/gl_renderer_draw_cache.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 void DrawPictureQuad(const DrawingFrame* frame, 148 void DrawPictureQuad(const DrawingFrame* frame,
149 const PictureDrawQuad* quad); 149 const PictureDrawQuad* quad);
150 150
151 void SetShaderOpacity(float opacity, int alpha_location); 151 void SetShaderOpacity(float opacity, int alpha_location);
152 void SetShaderQuadF(const gfx::QuadF& quad, int quad_location); 152 void SetShaderQuadF(const gfx::QuadF& quad, int quad_location);
153 void DrawQuadGeometry(const DrawingFrame* frame, 153 void DrawQuadGeometry(const DrawingFrame* frame,
154 const gfx::Transform& draw_transform, 154 const gfx::Transform& draw_transform,
155 const gfx::RectF& quad_rect, 155 const gfx::RectF& quad_rect,
156 int matrix_location); 156 int matrix_location);
157 void SetBlendEnabled(bool enabled); 157 void SetBlendEnabled(bool enabled);
158 bool blend_enabled() const { return blend_shadow_; }
158 void SetUseProgram(unsigned program); 159 void SetUseProgram(unsigned program);
159 160
160 void CopyTextureToFramebuffer(const DrawingFrame* frame, 161 void CopyTextureToFramebuffer(const DrawingFrame* frame,
161 int texture_id, 162 int texture_id,
162 gfx::Rect rect, 163 gfx::Rect rect,
163 const gfx::Transform& draw_matrix); 164 const gfx::Transform& draw_matrix);
164 165
165 // Check if quad needs antialiasing and if so, inflate the quad and 166 // Check if quad needs antialiasing and if so, inflate the quad and
166 // fill edge array for fragment shader. local_quad is set to 167 // fill edge array for fragment shader. local_quad is set to
167 // inflated quad if antialiasing is required, otherwise it is left 168 // inflated quad if antialiasing is required, otherwise it is left
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 #if DEBUG_GL_CALLS && !defined(NDEBUG) 366 #if DEBUG_GL_CALLS && !defined(NDEBUG)
366 #define GLC(context, x) \ 367 #define GLC(context, x) \
367 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 368 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
368 #else 369 #else
369 #define GLC(context, x) (x) 370 #define GLC(context, x) (x)
370 #endif 371 #endif
371 372
372 } // namespace cc 373 } // namespace cc
373 374
374 #endif // CC_OUTPUT_GL_RENDERER_H_ 375 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698