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

Unified Diff: cc/gl_renderer.cc

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
Index: cc/gl_renderer.cc
diff --git a/cc/gl_renderer.cc b/cc/gl_renderer.cc
index f287aecc824b37ac99939e96081aa656df2e7077..79dbd718fc28dff3fde604dbb39500aee27a2e52 100644
--- a/cc/gl_renderer.cc
+++ b/cc/gl_renderer.cc
@@ -693,7 +693,7 @@ void GLRenderer::drawTileQuad(const DrawingFrame& frame, const TileDrawQuad* qua
float clampX = min(0.5, clampRect.width() / 2.0 - epsilon);
float clampY = min(0.5, clampRect.height() / 2.0 - epsilon);
clampRect.Inset(clampX, clampY, clampX, clampY);
- gfx::PointF clampOffset = clampRect.origin() - tileRect.origin();
+ gfx::Vector2dF clampOffset = clampRect.origin() - tileRect.origin();
Peter Kasting 2012/10/27 01:01:39 Nit: If you inline into next statement, the tileRe
danakj 2012/10/29 19:17:20 Done.
gfx::PointF textureOffset = quad->textureOffset() + clampOffset +
(tileRect.origin() - quad->quadRect().origin());

Powered by Google App Engine
This is Rietveld 408576698