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

Side by Side Diff: skia/ext/cdl_paint.cc

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 3 years, 12 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 unified diff | Download patch
« no previous file with comments | « skia/ext/cdl_paint.h ('k') | skia/ext/cdl_picture.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "cdl_paint.h"
9
10 #if CDL_ENABLED
11
12 #include <cstdlib>
13
14 #include "base/logging.h"
15 #include "cdl_shader.h"
16
17 CdlPaint::CdlPaint() {}
18 CdlPaint::~CdlPaint() {}
19
20 CdlPaint::CdlPaint(const CdlPaint& paint)
21 : paint_(paint.paint_), shader_(paint.shader_) {}
22
23 SkPaint CdlPaint::toSkPaint() const {
24 SkPaint paint = paint_;
25 if (shader_.get())
26 paint.setShader(shader_->createSkShader());
27 return paint;
28 }
29
30 #endif // CDL_ENABLED
OLDNEW
« no previous file with comments | « skia/ext/cdl_paint.h ('k') | skia/ext/cdl_picture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698