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

Side by Side Diff: src/gpu/GrPaintStyle.h

Issue 311183002: Push dash checks into GrContext. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix merge issue with bounder Created 6 years, 6 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2014 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 #ifndef GrPaintStyle_DEFINED
9 #define GrPaintStyle_DEFINED
10
11 #include "SkStrokeRec.h"
12 #include "SkPathEffect.h"
13
14 class GrPaintStyle {
bsalomon 2014/06/04 19:05:05 I dunno about PaintStyle... it's more about stylin
robertphillips 2014/06/04 19:33:01 I also find PaintStyle less then intuitive: GrGeo
egdaniel 2014/06/04 19:34:30 It should be changed but I think Path is too speci
egdaniel 2014/06/05 17:18:15 Changed to GrStrokeInfo
15 public:
16 GrPaintStyle() : fStroke(NULL), fDashInfo(NULL) {}
17
18 void setStrokeRec(SkStrokeRec* stroke) {
19 fStroke = stroke;
20 }
21
22 bool hasStrokeRec() const { return NULL != fStroke; }
23
24 SkStrokeRec* getStrokeRec() const { return fStroke; }
25
26 void setDashInfo(SkPathEffect::DashInfo* dashInfo) {
27 fDashInfo = dashInfo;
28 }
29
30 bool hasDashInfo() const { return NULL != fDashInfo; }
31
32 const SkPathEffect::DashInfo* getDashInfo() const { return fDashInfo; }
33
34 private:
35 SkStrokeRec* fStroke;
bsalomon 2014/06/04 19:05:05 Can we do this in a safer way (not raw ptrs) witho
egdaniel 2014/06/05 17:18:15 The SkStrokeRec and DashInfo are now stored inside
36 SkPathEffect::DashInfo* fDashInfo;
37 };
38
39 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698