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

Unified Diff: skia/ext/bitmap_platform_device_win.cc

Issue 2610323004: Remove skia::DrawToNativeContext() (Closed)
Patch Set: missing header Created 3 years, 11 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 | « content/browser/compositor/software_output_device_win.cc ('k') | skia/ext/platform_canvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/bitmap_platform_device_win.cc
diff --git a/skia/ext/bitmap_platform_device_win.cc b/skia/ext/bitmap_platform_device_win.cc
index d537ca06c20a0dc529359f2eaf119621d89f1f5e..34b7e2fe9b68cf30d2864112dd27cf39d688eeba 100644
--- a/skia/ext/bitmap_platform_device_win.cc
+++ b/skia/ext/bitmap_platform_device_win.cc
@@ -33,21 +33,6 @@ void LoadClippingRegionToDC(HDC context,
namespace skia {
-void DrawToNativeContext(SkCanvas* canvas, HDC destination_hdc, int x, int y,
- const RECT* src_rect) {
- RECT temp_rect;
- if (!src_rect) {
- temp_rect.left = 0;
- temp_rect.right = canvas->imageInfo().width();
- temp_rect.top = 0;
- temp_rect.bottom = canvas->imageInfo().height();
- src_rect = &temp_rect;
- }
- skia::CopyHDC(skia::GetNativeDrawingContext(canvas), destination_hdc, x, y,
- canvas->imageInfo().isOpaque(), *src_rect,
- canvas->getTotalMatrix());
-}
-
HDC GetNativeDrawingContext(SkCanvas* canvas) {
PlatformDevice* platform_device = GetPlatformDevice(canvas->getTopDevice(true));
if (!platform_device)
« no previous file with comments | « content/browser/compositor/software_output_device_win.cc ('k') | skia/ext/platform_canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698