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

Unified Diff: cc/quads/texture_draw_quad.h

Issue 558083002: [cc] Add nearest neighbor filtering for TextureLayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add nearest_neighbor field to TextureMailbox. Created 6 years, 2 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
Index: cc/quads/texture_draw_quad.h
diff --git a/cc/quads/texture_draw_quad.h b/cc/quads/texture_draw_quad.h
index 9137d51beb5cf87315817f45e226f7eebd63deee..990b2764f7c706dd271ef893e1ff28b66b2afcf8 100644
--- a/cc/quads/texture_draw_quad.h
+++ b/cc/quads/texture_draw_quad.h
@@ -26,7 +26,8 @@ class CC_EXPORT TextureDrawQuad : public DrawQuad {
const gfx::PointF& uv_bottom_right,
SkColor background_color,
const float vertex_opacity[4],
- bool flipped);
+ bool flipped,
+ bool nearest_neighbor);
void SetAll(const SharedQuadState* shared_quad_state,
const gfx::Rect& rect,
@@ -39,7 +40,8 @@ class CC_EXPORT TextureDrawQuad : public DrawQuad {
const gfx::PointF& uv_bottom_right,
SkColor background_color,
const float vertex_opacity[4],
- bool flipped);
+ bool flipped,
+ bool nearest_neighbor);
unsigned resource_id;
bool premultiplied_alpha;
@@ -48,6 +50,7 @@ class CC_EXPORT TextureDrawQuad : public DrawQuad {
SkColor background_color;
float vertex_opacity[4];
bool flipped;
+ bool nearest_neighbor;
void IterateResources(const ResourceIteratorCallback& callback) override;

Powered by Google App Engine
This is Rietveld 408576698