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

Unified Diff: ui/gfx/blit.cc

Issue 10256008: Adds a class that makes it easy to subclass a HWND and filter messages sent to it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | « ui/base/win/hwnd_subclass_unittest.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/blit.cc
===================================================================
--- ui/gfx/blit.cc (revision 134125)
+++ ui/gfx/blit.cc (working copy)
@@ -126,7 +126,7 @@
skia::EndPlatformPaint(dst_canvas);
}
-#if defined(OS_WIN)
+#if defined(OS_WIN) && !defined(USE_AURA)
void ScrollCanvas(SkCanvas* canvas,
const gfx::Rect& clip,
@@ -141,7 +141,7 @@
ScrollDC(hdc, amount.x(), amount.y(), NULL, &r, NULL, &damaged_rect);
}
-#elif defined(OS_POSIX)
+#elif defined(OS_POSIX) || defined(USE_AURA)
// Cairo has no nice scroll function so we do our own. On Mac it's possible to
// use platform scroll code, but it's complex so we just use the same path
// here. Either way it will be software-only, so it shouldn't matter much.
« no previous file with comments | « ui/base/win/hwnd_subclass_unittest.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698