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

Unified Diff: cc/resource_update_controller_unittest.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/resource_update_controller.cc ('k') | cc/scrollbar_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resource_update_controller_unittest.cc
diff --git a/cc/resource_update_controller_unittest.cc b/cc/resource_update_controller_unittest.cc
index ca3c3b8a478b753f0a148c2968339c3b5d0bb9e1..9c46af5d47fe9b9ef72ab6dbfd1ecbf68187ba39 100644
--- a/cc/resource_update_controller_unittest.cc
+++ b/cc/resource_update_controller_unittest.cc
@@ -116,7 +116,7 @@ protected:
for (int i = 0; i < 4; i++) {
m_textures[i] = PrioritizedTexture::create(
- m_textureManager.get(), IntSize(300, 150), GL_RGBA);
+ m_textureManager.get(), gfx::Size(300, 150), GL_RGBA);
m_textures[i]->setRequestPriority(
PriorityCalculator::visiblePriority(true));
}
@@ -132,9 +132,9 @@ protected:
m_fullUploadCountExpected += count;
m_totalUploadCountExpected += count;
- const IntRect rect(0, 0, 300, 150);
+ const gfx::Rect rect(0, 0, 300, 150);
const ResourceUpdate upload = ResourceUpdate::Create(
- m_textures[textureIndex].get(), &m_bitmap, rect, rect, IntSize());
+ m_textures[textureIndex].get(), &m_bitmap, rect, rect, gfx::Vector2d());
for (int i = 0; i < count; i++)
m_queue->appendFullUpload(upload);
}
@@ -149,9 +149,9 @@ protected:
m_partialCountExpected += count;
m_totalUploadCountExpected += count;
- const IntRect rect(0, 0, 100, 100);
+ const gfx::Rect rect(0, 0, 100, 100);
const ResourceUpdate upload = ResourceUpdate::Create(
- m_textures[textureIndex].get(), &m_bitmap, rect, rect, IntSize());
+ m_textures[textureIndex].get(), &m_bitmap, rect, rect, gfx::Vector2d());
for (int i = 0; i < count; i++)
m_queue->appendPartialUpload(upload);
}
« no previous file with comments | « cc/resource_update_controller.cc ('k') | cc/scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698