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

Unified Diff: cc/software_renderer.cc

Issue 11543013: Combine mask texture parameters into single gfx::RectF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address nits Created 8 years 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/render_surface_impl.cc ('k') | cc/test/render_pass_test_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/software_renderer.cc
diff --git a/cc/software_renderer.cc b/cc/software_renderer.cc
index 87b6fbf8847a0925784d65e1f39536a5e7c8ecd6..9ebd7802af74d9a323aae6cbc565ecdefc323887 100644
--- a/cc/software_renderer.cc
+++ b/cc/software_renderer.cc
@@ -321,10 +321,10 @@ void SoftwareRenderer::drawRenderPassQuad(const DrawingFrame& frame, const Rende
const SkBitmap* mask = maskLock.skBitmap();
SkRect maskRect = SkRect::MakeXYWH(
- quad->mask_tex_coord_offset_x * mask->width(),
- quad->mask_tex_coord_offset_y * mask->height(),
- quad->mask_tex_coord_scale_x * mask->width(),
- quad->mask_tex_coord_scale_y * mask->height());
+ quad->mask_uv_rect.x() * mask->width(),
+ quad->mask_uv_rect.y() * mask->height(),
+ quad->mask_uv_rect.width() * mask->width(),
+ quad->mask_uv_rect.height() * mask->height());
SkMatrix maskMat;
maskMat.setRectToRect(maskRect, destRect, SkMatrix::kFill_ScaleToFit);
« no previous file with comments | « cc/render_surface_impl.cc ('k') | cc/test/render_pass_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698