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

Unified Diff: cc/scheduler/texture_uploader.h

Issue 21159007: cc: Adding support for RGBA_4444 tile textures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix raster-on-demand codepath Created 7 years, 3 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/scheduler/texture_uploader.h
diff --git a/cc/scheduler/texture_uploader.h b/cc/scheduler/texture_uploader.h
index 1457bedb7277d190d58fe73f7bceeaa5d128eedc..4b8c764dce244cbeb219b55c7eb92942d56aed63 100644
--- a/cc/scheduler/texture_uploader.h
+++ b/cc/scheduler/texture_uploader.h
@@ -28,9 +28,13 @@ class CC_EXPORT TextureUploader {
static scoped_ptr<TextureUploader> Create(
WebKit::WebGraphicsContext3D* context,
bool use_map_tex_sub_image,
- bool use_shallow_flush) {
+ bool use_shallow_flush,
+ bool use_16_bit_textures) {
return make_scoped_ptr(
- new TextureUploader(context, use_map_tex_sub_image, use_shallow_flush));
+ new TextureUploader(context,
+ use_map_tex_sub_image,
+ use_shallow_flush,
+ use_16_bit_textures));
}
~TextureUploader();
@@ -87,7 +91,8 @@ class CC_EXPORT TextureUploader {
TextureUploader(WebKit::WebGraphicsContext3D* context,
bool use_map_tex_sub_image,
- bool use_shallow_flush);
+ bool use_shallow_flush,
+ bool use_16_bit_textures);
void BeginQuery();
void EndQuery();
@@ -116,6 +121,7 @@ class CC_EXPORT TextureUploader {
bool use_shallow_flush_;
size_t num_texture_uploads_since_last_flush_;
+ bool use_16_bit_textures_;
DISALLOW_COPY_AND_ASSIGN(TextureUploader);
};

Powered by Google App Engine
This is Rietveld 408576698