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

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

Issue 1461913002: Revert of Fix NVPR assert for equivalent ovals (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | src/gpu/GrPath.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrPath_DEFINED 8 #ifndef GrPath_DEFINED
9 #define GrPath_DEFINED 9 #define GrPath_DEFINED
10 10
(...skipping 18 matching lines...) Expand all
29 #endif 29 #endif
30 { 30 {
31 } 31 }
32 32
33 static void ComputeKey(const SkPath& path, const GrStrokeInfo& stroke, GrUni queKey* key, 33 static void ComputeKey(const SkPath& path, const GrStrokeInfo& stroke, GrUni queKey* key,
34 bool* outIsVolatile); 34 bool* outIsVolatile);
35 35
36 const SkRect& getBounds() const { return fBounds; } 36 const SkRect& getBounds() const { return fBounds; }
37 37
38 #ifdef SK_DEBUG 38 #ifdef SK_DEBUG
39 bool isEqualTo(const SkPath& path, const GrStrokeInfo& stroke) const; 39 bool isEqualTo(const SkPath& path, const GrStrokeInfo& stroke) {
40 return fSkPath == path && fStroke.hasEqualEffect(stroke);
41 }
40 #endif 42 #endif
41 43
42 protected: 44 protected:
43 SkRect fBounds; 45 SkRect fBounds;
44 #ifdef SK_DEBUG 46 #ifdef SK_DEBUG
45 SkPath fSkPath; 47 SkPath fSkPath;
46 GrStrokeInfo fStroke; 48 GrStrokeInfo fStroke;
47 #endif 49 #endif
48 50
49 private: 51 private:
50 typedef GrGpuResource INHERITED; 52 typedef GrGpuResource INHERITED;
51 }; 53 };
52 54
53 #endif 55 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698