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

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: deprecate GLenum format throughout cc 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..e596788c1bd9cecc6ea2dd410e1c9e15c3d71897 100644
--- a/cc/scheduler/texture_uploader.h
+++ b/cc/scheduler/texture_uploader.h
@@ -11,7 +11,7 @@
#include "base/memory/scoped_ptr.h"
#include "cc/base/cc_export.h"
#include "cc/base/scoped_ptr_deque.h"
-#include "third_party/khronos/GLES2/gl2.h"
+#include "cc/resources/resource_provider.h"
namespace WebKit { class WebGraphicsContext3D; }
@@ -30,7 +30,9 @@ class CC_EXPORT TextureUploader {
bool use_map_tex_sub_image,
bool use_shallow_flush) {
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));
}
~TextureUploader();
@@ -46,7 +48,7 @@ class CC_EXPORT TextureUploader {
gfx::Rect content_rect,
gfx::Rect source_rect,
gfx::Vector2d dest_offset,
- GLenum format,
+ ResourceProvider::TextureFormat format,
gfx::Size size);
void Flush();
@@ -97,12 +99,12 @@ class CC_EXPORT TextureUploader {
gfx::Rect image_rect,
gfx::Rect source_rect,
gfx::Vector2d dest_offset,
- GLenum format);
+ ResourceProvider::TextureFormat format);
void UploadWithMapTexSubImage(const uint8* image,
gfx::Rect image_rect,
gfx::Rect source_rect,
gfx::Vector2d dest_offset,
- GLenum format);
+ ResourceProvider::TextureFormat format);
WebKit::WebGraphicsContext3D* context_;
ScopedPtrDeque<Query> pending_queries_;

Powered by Google App Engine
This is Rietveld 408576698