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

Unified Diff: cc/output/gl_renderer.cc

Issue 18582003: Removed GLRenderer::DrawTextureQuad which has been unused for a while. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/gl_renderer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index ad6d3428de8f18c670386d80224c902fc696508f..c99884c72011ee1452e2c2421abd5678512a0ceb 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -1818,40 +1818,6 @@ void GLRenderer::EnqueueTextureQuad(const DrawingFrame* frame,
draw_cache_.matrix_data.push_back(m);
}
-void GLRenderer::DrawTextureQuad(const DrawingFrame* frame,
- const TextureDrawQuad* quad) {
- TexCoordPrecision tex_coord_precision = TexCoordPrecisionRequired(
- context_, &highp_threshold_cache_, highp_threshold_min_,
- quad->shared_quad_state->visible_content_rect.bottom_right());
-
- TexTransformTextureProgramBinding binding;
- if (quad->premultiplied_alpha) {
- binding.Set(GetTextureProgram(tex_coord_precision), Context());
- } else {
- binding.Set(GetNonPremultipliedTextureProgram(tex_coord_precision),
- Context());
- }
- SetUseProgram(binding.program_id);
- GLC(Context(), Context()->uniform1i(binding.sampler_location, 0));
- Float4 uv_xform = UVTransform(quad);
- GLC(Context(),
- Context()->uniform4f(binding.tex_transform_location,
- uv_xform.data[0],
- uv_xform.data[1],
- uv_xform.data[2],
- uv_xform.data[3]));
-
- GLC(Context(),
- Context()->uniform1fv(
- binding.vertex_opacity_location, 4, quad->vertex_opacity));
-
- ResourceProvider::ScopedSamplerGL quad_resource_lock(
- resource_provider_, quad->resource_id, GL_TEXTURE_2D, GL_LINEAR);
-
- DrawQuadGeometry(
- frame, quad->quadTransform(), quad->rect, binding.matrix_location);
-}
-
void GLRenderer::DrawIOSurfaceQuad(const DrawingFrame* frame,
const IOSurfaceDrawQuad* quad) {
SetBlendEnabled(quad->ShouldDrawWithBlending());
« no previous file with comments | « cc/output/gl_renderer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698