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

Unified Diff: cc/resources/resource_provider.h

Issue 22529002: [cc] Allow resources and ui resources to specify wrap mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo and add asserts Created 7 years, 4 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/resources/resource_provider.h
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
index b5dccc8f046a71c6a2a33906d745d37727b05ca6..02218cc1cee1814207acbfefad46893155126219 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -92,6 +92,7 @@ class CC_EXPORT ResourceProvider {
ResourceId CreateGLTexture(gfx::Size size,
GLenum format,
GLenum texture_pool,
+ GLint wrap_mode,
TextureUsageHint hint);
ResourceId CreateBitmap(gfx::Size size);
@@ -342,8 +343,13 @@ class CC_EXPORT ResourceProvider {
GLenum format,
GLenum filter,
GLenum texture_pool,
+ GLint wrap_mode,
TextureUsageHint hint);
- Resource(uint8_t* pixels, gfx::Size size, GLenum format, GLenum filter);
+ Resource(uint8_t* pixels,
+ gfx::Size size,
+ GLenum format,
+ GLenum filter,
+ GLint wrap_mode);
unsigned gl_id;
// Pixel buffer used for set pixels without unnecessary copying.
@@ -369,6 +375,7 @@ class CC_EXPORT ResourceProvider {
GLenum filter;
unsigned image_id;
GLenum texture_pool;
+ GLint wrap_mode;
TextureUsageHint hint;
ResourceType type;
};

Powered by Google App Engine
This is Rietveld 408576698