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

Unified Diff: cc/blink/web_external_texture_layer_impl.h

Issue 558083002: [cc] Add nearest neighbor filtering for TextureLayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove printfs, clean up CL. Created 6 years, 1 month 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/blink/web_external_texture_layer_impl.h
diff --git a/cc/blink/web_external_texture_layer_impl.h b/cc/blink/web_external_texture_layer_impl.h
index 853b1a079258e5c6771a6167b5d47c82d0120ae4..ddbb6cd21be290bf4c3b3c7c7698963bee2c695d 100644
--- a/cc/blink/web_external_texture_layer_impl.h
+++ b/cc/blink/web_external_texture_layer_impl.h
@@ -11,6 +11,7 @@
#include "cc/blink/cc_blink_export.h"
#include "cc/layers/texture_layer_client.h"
#include "third_party/WebKit/public/platform/WebExternalTextureLayer.h"
+#include "third_party/skia/include/core/SkPaint.h"
namespace blink {
struct WebFloatRect;
@@ -43,6 +44,7 @@ class WebExternalTextureLayerImpl
virtual void setPremultipliedAlpha(bool premultiplied);
virtual void setBlendBackgroundColor(bool blend);
virtual void setRateLimitContext(bool rate_limit);
+ virtual void setFilterLevel(SkPaint::FilterLevel filter_level);
danakj 2014/11/04 16:02:42 since this function only handles none vs not-none,
jackhou1 2014/11/12 03:35:17 I was recommended to use an enum on the other CL (
danakj 2014/11/12 18:10:14 I guess different owners with different tastes. I'
// TextureLayerClient implementation.
bool PrepareTextureMailbox(
@@ -64,6 +66,8 @@ class WebExternalTextureLayerImpl
scoped_ptr<WebLayerImpl> layer_;
ScopedVector<WebExternalBitmapImpl> free_bitmaps_;
+ bool nearest_neighbor_;
danakj 2014/11/04 16:02:42 unused?
jackhou1 2014/11/12 03:35:17 Removed.
+
DISALLOW_COPY_AND_ASSIGN(WebExternalTextureLayerImpl);
};
« no previous file with comments | « no previous file | cc/blink/web_external_texture_layer_impl.cc » ('j') | cc/blink/web_external_texture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698