| Index: cc/texture_uploader.h
|
| diff --git a/cc/texture_uploader.h b/cc/texture_uploader.h
|
| index c317f051b4c3022cf94fd77d1dad58db1d977463..f2a964dfa60156a76dc2b5ab395a27902e439288 100644
|
| --- a/cc/texture_uploader.h
|
| +++ b/cc/texture_uploader.h
|
| @@ -5,7 +5,6 @@
|
| #ifndef CC_TEXTURE_UPLOADER_H_
|
| #define CC_TEXTURE_UPLOADER_H_
|
|
|
| -#include "IntRect.h"
|
| #include "base/basictypes.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "cc/scoped_ptr_deque.h"
|
| @@ -16,6 +15,12 @@ namespace WebKit {
|
| class WebGraphicsContext3D;
|
| }
|
|
|
| +namespace gfx {
|
| +class Rect;
|
| +class Size;
|
| +class Vector2d;
|
| +}
|
| +
|
| namespace cc {
|
|
|
| class TextureUploader {
|
| @@ -35,12 +40,12 @@ public:
|
| // imageRect, expressed in the same coordinate system as imageRect. Let
|
| // image be a buffer for imageRect. This function will copy the region
|
| // corresponding to sourceRect to destOffset in this sub-image.
|
| - void upload(const uint8_t* image,
|
| - const IntRect& content_rect,
|
| - const IntRect& source_rect,
|
| - const IntSize& dest_offset,
|
| + void upload(const uint8* image,
|
| + const gfx::Rect& content_rect,
|
| + const gfx::Rect& source_rect,
|
| + const gfx::Vector2d& dest_offset,
|
| GLenum format,
|
| - IntSize size);
|
| + const gfx::Size& size);
|
|
|
| private:
|
| class Query {
|
| @@ -73,15 +78,15 @@ private:
|
| void endQuery();
|
| void processQueries();
|
|
|
| - void uploadWithTexSubImage(const uint8_t* image,
|
| - const IntRect& image_rect,
|
| - const IntRect& source_rect,
|
| - const IntSize& dest_offset,
|
| + void uploadWithTexSubImage(const uint8* image,
|
| + const gfx::Rect& image_rect,
|
| + const gfx::Rect& source_rect,
|
| + const gfx::Vector2d& dest_offset,
|
| GLenum format);
|
| - void uploadWithMapTexSubImage(const uint8_t* image,
|
| - const IntRect& image_rect,
|
| - const IntRect& source_rect,
|
| - const IntSize& dest_offset,
|
| + void uploadWithMapTexSubImage(const uint8* image,
|
| + const gfx::Rect& image_rect,
|
| + const gfx::Rect& source_rect,
|
| + const gfx::Vector2d& dest_offset,
|
| GLenum format);
|
|
|
| WebKit::WebGraphicsContext3D* m_context;
|
| @@ -92,7 +97,7 @@ private:
|
|
|
| bool m_useMapTexSubImage;
|
| size_t m_subImageSize;
|
| - scoped_array<uint8_t> m_subImage;
|
| + scoped_array<uint8> m_subImage;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(TextureUploader);
|
| };
|
|
|