| Index: ui/views/controls/button/label_button_border.cc
|
| diff --git a/ui/views/controls/button/label_button_border.cc b/ui/views/controls/button/label_button_border.cc
|
| index 2b0a18840d57a14074f6ff1733354657a6d9683f..e3dba3b021d0093af128da7b80b22f2dda2172ac 100644
|
| --- a/ui/views/controls/button/label_button_border.cc
|
| +++ b/ui/views/controls/button/label_button_border.cc
|
| @@ -143,19 +143,19 @@ void LabelButtonAssetBorder::Paint(const View& view, gfx::Canvas* canvas) {
|
| static_cast<uint8_t>(animation->CurrentValueBetween(0, 255));
|
|
|
| const SkRect sk_rect = gfx::RectToSkRect(rect);
|
| - SkAutoCanvasRestore auto_restore(canvas->sk_canvas(), false);
|
| + CdlAutoCanvasRestore auto_restore(canvas->sk_canvas(), false);
|
| canvas->sk_canvas()->saveLayer(&sk_rect, nullptr);
|
|
|
| {
|
| // First, modulate the background by 1 - alpha.
|
| - SkAutoCanvasRestore auto_restore(canvas->sk_canvas(), false);
|
| + CdlAutoCanvasRestore auto_restore(canvas->sk_canvas(), false);
|
| canvas->sk_canvas()->saveLayerAlpha(&sk_rect, 255 - fg_alpha);
|
| state = native_theme_delegate->GetBackgroundThemeState(&extra);
|
| PaintHelper(this, canvas, state, rect, extra);
|
| }
|
|
|
| // Then modulate the foreground by alpha, and blend using kPlus_Mode.
|
| - SkPaint paint;
|
| + CdlPaint paint;
|
| paint.setAlpha(fg_alpha);
|
| paint.setBlendMode(SkBlendMode::kPlus);
|
| canvas->sk_canvas()->saveLayer(&sk_rect, &paint);
|
|
|