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

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

Issue 11031055: Introduce PlatformBitmap, which is a minimal helper class that wraps an SkBitmap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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: content/browser/renderer_host/render_widget_host_view_win.cc
===================================================================
--- content/browser/renderer_host/render_widget_host_view_win.cc (revision 161107)
+++ content/browser/renderer_host/render_widget_host_view_win.cc (working copy)
@@ -927,7 +927,7 @@
const gfx::Rect& src_subrect,
const gfx::Size& dst_size,
const base::Callback<void(bool)>& callback,
- skia::PlatformCanvas* output) {
+ skia::PlatformBitmap* output) {
base::ScopedClosureRunner scoped_callback_runner(base::Bind(callback, false));
if (!accelerated_surface_.get())
return;
@@ -935,13 +935,13 @@
if (dst_size.IsEmpty())
return;
- if (!output->initialize(dst_size.width(), dst_size.height(), true))
+ if (!output->Allocate(dst_size.width(), dst_size.height(), true))
return;
const bool result = accelerated_surface_->CopyTo(
src_subrect,
dst_size,
- output->getTopDevice()->accessBitmap(true).getPixels());
+ output->GetBitmap().getPixels());
scoped_callback_runner.Release();
callback.Run(result);
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.h ('k') | content/browser/renderer_host/test_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698