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

Unified Diff: content/browser/renderer_host/backing_store_skia.cc

Issue 8369006: [Aura] Support transparent webkit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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: content/browser/renderer_host/backing_store_skia.cc
diff --git a/content/browser/renderer_host/backing_store_skia.cc b/content/browser/renderer_host/backing_store_skia.cc
index 1c04363b70aabbdfd5592b99ac4850240a1d23a6..cc461061f4db4d6e753a46793b9f7d63a7bb38e8 100644
--- a/content/browser/renderer_host/backing_store_skia.cc
+++ b/content/browser/renderer_host/backing_store_skia.cc
@@ -24,6 +24,7 @@ BackingStoreSkia::BackingStoreSkia(RenderWidgetHost* widget,
bitmap_.setConfig(SkBitmap::kARGB_8888_Config, size.width(), size.height());
bitmap_.allocPixels();
canvas_.reset(new SkCanvas(bitmap_));
+ copy_paint_.setXfermodeMode(SkXfermode::kSrc_Mode);
}
BackingStoreSkia::~BackingStoreSkia() {
@@ -73,7 +74,7 @@ void BackingStoreSkia::PaintToBackingStore(
SkRect dstrect = SkRect::MakeXYWH(
SkIntToScalar(copy_rect.x()), SkIntToScalar(copy_rect.y()),
SkIntToScalar(w), SkIntToScalar(h));
- canvas_.get()->drawBitmapRect(sk_bitmap, &srcrect, dstrect);
+ canvas_.get()->drawBitmapRect(sk_bitmap, &srcrect, dstrect, &copy_paint_);
brettw 2011/10/21 20:14:44 In other places we haven't bothered saving the SkP
xiyuan 2011/10/21 20:24:05 Done.
}
}
« no previous file with comments | « content/browser/renderer_host/backing_store_skia.h ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698