diff options
author | jackhou <jackhou@chromium.org> | 2014-12-13 15:41:00 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-13 23:41:32 +0000 |
commit | 2422961898e84e420c0e12031ebb5147748ab490 (patch) | |
tree | fe767314b65e808575a9e12fe32f1bd255d3b6b4 /cc/quads/tile_draw_quad.cc | |
parent | 9d04deed4364293a7f662d69cbbc23c4cab355f6 (diff) | |
download | chromium_src-2422961898e84e420c0e12031ebb5147748ab490.zip chromium_src-2422961898e84e420c0e12031ebb5147748ab490.tar.gz chromium_src-2422961898e84e420c0e12031ebb5147748ab490.tar.bz2 |
[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}
Diffstat (limited to 'cc/quads/tile_draw_quad.cc')
-rw-r--r-- | cc/quads/tile_draw_quad.cc | 12 |
1 files changed, 8 insertions, 4 deletions
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; } |