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

Side by Side Diff: include/core/SkPath.h

Issue 1114353004: Implement vertex buffer caching in the tessellated path renderer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT; remove GrContext and use GrResourceProvider directly Created 5 years, 4 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 | « no previous file | include/core/SkPathRef.h » ('j') | include/gpu/GrResourceKey.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 SkPath_DEFINED 8 #ifndef SkPath_DEFINED
9 #define SkPath_DEFINED 9 #define SkPath_DEFINED
10 10
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 994
995 // 'rect' needs to be sorted 995 // 'rect' needs to be sorted
996 void setBounds(const SkRect& rect) { 996 void setBounds(const SkRect& rect) {
997 SkPathRef::Editor ed(&fPathRef); 997 SkPathRef::Editor ed(&fPathRef);
998 998
999 ed.setBounds(rect); 999 ed.setBounds(rect);
1000 } 1000 }
1001 1001
1002 void setPt(int index, SkScalar x, SkScalar y); 1002 void setPt(int index, SkScalar x, SkScalar y);
1003 1003
1004 SkPathRef* pathRef() const { return fPathRef; }
1005
1004 friend class SkAutoPathBoundsUpdate; 1006 friend class SkAutoPathBoundsUpdate;
1005 friend class SkAutoDisableOvalCheck; 1007 friend class SkAutoDisableOvalCheck;
1006 friend class SkAutoDisableDirectionCheck; 1008 friend class SkAutoDisableDirectionCheck;
1007 friend class SkBench_AddPathTest; // perf test reversePathTo 1009 friend class SkBench_AddPathTest; // perf test reversePathTo
1008 friend class PathTest_Private; // unit test reversePathTo 1010 friend class PathTest_Private; // unit test reversePathTo
1011 friend class TessellatingPathBatch; // for pathRef()
bsalomon 2015/08/03 18:08:26 Why not just pass the listeners through the skpath
Stephen White 2015/08/03 18:54:41 I didn't want to put it on the SkPath, partly for
1009 }; 1012 };
1010 1013
1011 #endif 1014 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkPathRef.h » ('j') | include/gpu/GrResourceKey.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698