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

Unified Diff: content/renderer/android/synchronous_compositor_proxy.cc

Issue 2355583002: stop using (deprecated) setClipRegion, add flag for new clipop type (Closed)
Patch Set: rename to DrawRectWithColor Created 4 years, 3 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 | « no previous file | skia/config/SkUserConfig.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/android/synchronous_compositor_proxy.cc
diff --git a/content/renderer/android/synchronous_compositor_proxy.cc b/content/renderer/android/synchronous_compositor_proxy.cc
index 99eeeeb2ec4fe1c9156800dab0ed7b6d2fb8ff81..79dd3bd1cadc72a0057edb67a65c9d54bec536e1 100644
--- a/content/renderer/android/synchronous_compositor_proxy.cc
+++ b/content/renderer/android/synchronous_compositor_proxy.cc
@@ -313,8 +313,8 @@ void SynchronousCompositorProxy::DoDemandDrawSw(
if (!bitmap.installPixels(info, software_draw_shm_->shm.memory(), stride))
return;
SkCanvas canvas(bitmap);
- canvas.setMatrix(params.transform.matrix());
- canvas.setClipRegion(SkRegion(gfx::RectToSkIRect(params.clip)));
+ canvas.concat(params.transform.matrix());
+ canvas.clipRect(gfx::RectToSkRect(params.clip));
compositor_frame_sink_->DemandDrawSw(&canvas);
}
« no previous file with comments | « no previous file | skia/config/SkUserConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698