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 |