summaryrefslogtreecommitdiffstats
path: root/cc/output/software_renderer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/output/software_renderer.cc')
-rw-r--r--cc/output/software_renderer.cc14
1 files changed, 5 insertions, 9 deletions
diff --git a/cc/output/software_renderer.cc b/cc/output/software_renderer.cc
index a8110ef..c34fb4d 100644
--- a/cc/output/software_renderer.cc
+++ b/cc/output/software_renderer.cc
@@ -472,10 +472,8 @@ void SoftwareRenderer::DrawTextureQuad(const DrawingFrame* frame,
paint.setShader(shader.get());
current_canvas_->drawRect(quad_rect, paint);
} else {
- current_canvas_->drawBitmapRectToRect(*bitmap,
- &sk_uv_rect,
- quad_rect,
- &current_paint_);
+ current_canvas_->drawBitmapRect(*bitmap, &sk_uv_rect, quad_rect,
+ &current_paint_);
}
if (needs_layer)
@@ -503,11 +501,9 @@ void SoftwareRenderer::DrawTileQuad(const DrawingFrame* frame,
SkRect uv_rect = gfx::RectFToSkRect(visible_tex_coord_rect);
current_paint_.setFilterQuality(
quad->nearest_neighbor ? kNone_SkFilterQuality : kLow_SkFilterQuality);
- current_canvas_->drawBitmapRectToRect(
- *lock.sk_bitmap(),
- &uv_rect,
- gfx::RectFToSkRect(visible_quad_vertex_rect),
- &current_paint_);
+ current_canvas_->drawBitmapRect(*lock.sk_bitmap(), &uv_rect,
+ gfx::RectFToSkRect(visible_quad_vertex_rect),
+ &current_paint_);
}
void SoftwareRenderer::DrawRenderPassQuad(const DrawingFrame* frame,