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

Unified Diff: webkit/tools/test_shell/test_shell_webthemecontrol.cc

Issue 7019013: Removal of dependencies on PlatformDevice classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Syncing merge conflicts. Created 9 years, 7 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 | « webkit/tools/test_shell/mac/webwidget_host.mm ('k') | webkit/tools/test_shell/webwidget_host_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell_webthemecontrol.cc
===================================================================
--- webkit/tools/test_shell/test_shell_webthemecontrol.cc (revision 86706)
+++ webkit/tools/test_shell/test_shell_webthemecontrol.cc (working copy)
@@ -246,7 +246,7 @@
// Indents for the the slider track.
const int kSliderIndent = 2;
- skia::BeginPlatformPaint(canvas_);
+ skia::ScopedPlatformPaint scoped_platform_paint(canvas_);
switch (type_) {
case kUnknown_Type:
NOTREACHED();
@@ -391,7 +391,6 @@
}
markState();
- skia::EndPlatformPaint(canvas_);
}
// Because rendering a text field is dependent on input
@@ -401,7 +400,7 @@
SkColor color) {
SkPaint paint;
- skia::BeginPlatformPaint(canvas_);
+ skia::ScopedPlatformPaint scoped_platform_paint(canvas_);
if (fill_content_area) {
paint.setColor(color);
paint.setStyle(SkPaint::kFill_Style);
@@ -414,14 +413,13 @@
}
markState();
- skia::EndPlatformPaint(canvas_);
}
void
Control::drawProgressBar(const SkIRect& fill_rect) {
SkPaint paint;
- skia::BeginPlatformPaint(canvas_);
+ skia::ScopedPlatformPaint scoped_platform_paint(canvas_);
paint.setColor(bg_color_);
paint.setStyle(SkPaint::kFill_Style);
canvas_->drawIRect(irect_, paint);
@@ -434,7 +432,6 @@
canvas_->drawIRect(tofill, paint);
markState();
- skia::EndPlatformPaint(canvas_);
}
} // namespace TestShellWebTheme
« no previous file with comments | « webkit/tools/test_shell/mac/webwidget_host.mm ('k') | webkit/tools/test_shell/webwidget_host_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698