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

Unified Diff: cc/texture.cc

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.h ('k') | cc/texture_uploader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/texture.cc
diff --git a/cc/texture.cc b/cc/texture.cc
index f6400eb20abcf0f76b2afe15fba636e1de167b0c..0b7583472a214cedee0d13f17b424f8011bf12ee 100644
--- a/cc/texture.cc
+++ b/cc/texture.cc
@@ -9,7 +9,7 @@
namespace cc {
-void Texture::setDimensions(const IntSize& size, GLenum format)
+void Texture::setDimensions(const gfx::Size& size, GLenum format)
{
m_size = size;
m_format = format;
@@ -17,7 +17,7 @@ void Texture::setDimensions(const IntSize& size, GLenum format)
size_t Texture::bytes() const
{
- if (m_size.isEmpty())
+ if (m_size.IsEmpty())
return 0u;
return memorySizeBytes(m_size, m_format);
@@ -41,7 +41,7 @@ size_t Texture::bytesPerPixel(GLenum format)
return componentsPerPixel * bytesPerComponent;
}
-size_t Texture::memorySizeBytes(const IntSize& size, GLenum format)
+size_t Texture::memorySizeBytes(const gfx::Size& size, GLenum format)
{
return bytesPerPixel(format) * size.width() * size.height();
}
« no previous file with comments | « cc/texture.h ('k') | cc/texture_uploader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698