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

Unified Diff: apps/ui/views/app_window_frame_view.cc

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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 | « DEPS ('k') | cc/blimp/client_picture_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/ui/views/app_window_frame_view.cc
diff --git a/apps/ui/views/app_window_frame_view.cc b/apps/ui/views/app_window_frame_view.cc
index 728e038afb46b0adcceb914f7aa8989b39539394..ae9dc95e10ffc6bfa4f7db3441611da557e02d2e 100644
--- a/apps/ui/views/app_window_frame_view.cc
+++ b/apps/ui/views/app_window_frame_view.cc
@@ -8,6 +8,7 @@
#include "extensions/browser/app_window/native_app_window.h"
#include "extensions/common/draggable_region.h"
#include "grit/theme_resources.h"
+#include "skia/ext/cdl_paint.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkRegion.h"
#include "ui/base/hit_test.h"
@@ -305,9 +306,9 @@ void AppWindowFrameView::OnPaint(gfx::Canvas* canvas) {
SetButtonImagesForFrame();
// TODO(benwells): different look for inactive by default.
- SkPaint paint;
+ CdlPaint paint;
paint.setAntiAlias(false);
- paint.setStyle(SkPaint::kFill_Style);
+ paint.setStyle(CdlPaint::kFill_Style);
paint.setColor(CurrentFrameColor());
gfx::Path path;
path.moveTo(0, 0);
« no previous file with comments | « DEPS ('k') | cc/blimp/client_picture_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698