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

Unified Diff: cc/texture_uploader.h

Issue 11266030: Use gfx:: Geometry types for the resource provider and layer updater classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: uint8 Created 8 years, 2 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
« no previous file with comments | « cc/texture.cc ('k') | cc/texture_uploader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « cc/texture.cc ('k') | cc/texture_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698