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

Unified Diff: ui/gfx/native_theme_win.cc

Issue 6914029: We assume that each SkDevice is our custom PlatformDevice. This assumption is not valid when usin... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
« skia/ext/platform_canvas.cc ('K') | « skia/ext/platform_canvas.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/native_theme_win.cc
===================================================================
--- ui/gfx/native_theme_win.cc (revision 83722)
+++ ui/gfx/native_theme_win.cc (working copy)
@@ -132,6 +132,12 @@
State state,
const gfx::Rect& rect,
const ExtraParams& extra) const {
+ if (!skia::SupportsPlatformPaint(canvas)) {
+ // TODO(alokp): Implement this path.
+ // This block will only get hit with --enable-accelerated-drawing flag.
+ DLOG(INFO) << "Could not paint native UI control";
+ return;
+ }
HDC hdc = skia::BeginPlatformPaint(canvas);
switch (part) {
« skia/ext/platform_canvas.cc ('K') | « skia/ext/platform_canvas.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698