From 2422961898e84e420c0e12031ebb5147748ab490 Mon Sep 17 00:00:00 2001 From: jackhou Date: Sat, 13 Dec 2014 15:41:00 -0800 Subject: [cc] Add nearest neighbor filtering for PictureLayer. Blink side here (depends on this CL): https://codereview.chromium.org/782693003/ BUG=317991 Review URL: https://codereview.chromium.org/789433003 Cr-Commit-Position: refs/heads/master@{#308289} --- cc/quads/tile_draw_quad.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'cc/quads/tile_draw_quad.cc') diff --git a/cc/quads/tile_draw_quad.cc b/cc/quads/tile_draw_quad.cc index ea3a14a..88a4b3af 100644 --- a/cc/quads/tile_draw_quad.cc +++ b/cc/quads/tile_draw_quad.cc @@ -25,7 +25,8 @@ void TileDrawQuad::SetNew(const SharedQuadState* shared_quad_state, unsigned resource_id, const gfx::RectF& tex_coord_rect, const gfx::Size& texture_size, - bool swizzle_contents) { + bool swizzle_contents, + bool nearest_neighbor) { ContentDrawQuadBase::SetNew(shared_quad_state, DrawQuad::TILED_CONTENT, rect, @@ -33,7 +34,8 @@ void TileDrawQuad::SetNew(const SharedQuadState* shared_quad_state, visible_rect, tex_coord_rect, texture_size, - swizzle_contents); + swizzle_contents, + nearest_neighbor); this->resource_id = resource_id; } @@ -45,10 +47,12 @@ void TileDrawQuad::SetAll(const SharedQuadState* shared_quad_state, unsigned resource_id, const gfx::RectF& tex_coord_rect, const gfx::Size& texture_size, - bool swizzle_contents) { + bool swizzle_contents, + bool nearest_neighbor) { ContentDrawQuadBase::SetAll(shared_quad_state, DrawQuad::TILED_CONTENT, rect, opaque_rect, visible_rect, needs_blending, - tex_coord_rect, texture_size, swizzle_contents); + tex_coord_rect, texture_size, swizzle_contents, + nearest_neighbor); this->resource_id = resource_id; } -- cgit v1.1