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

Side by Side Diff: src/core/SkPath.cpp

Issue 26557003: Add a GPU paths to resource cache of the context (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: a Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkBuffer.h" 10 #include "SkBuffer.h"
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 337
338 const SkPath* SkPath::getSourcePath() const { 338 const SkPath* SkPath::getSourcePath() const {
339 return fSourcePath; 339 return fSourcePath;
340 } 340 }
341 341
342 void SkPath::setSourcePath(const SkPath* path) { 342 void SkPath::setSourcePath(const SkPath* path) {
343 fSourcePath = path; 343 fSourcePath = path;
344 } 344 }
345 #endif 345 #endif
346 346
347 uint32_t SkPath::getHash() const {
348 return fPathRef->getHash();
349 }
350
347 void SkPath::reset() { 351 void SkPath::reset() {
348 SkDEBUGCODE(this->validate();) 352 SkDEBUGCODE(this->validate();)
349 353
350 fPathRef.reset(SkPathRef::CreateEmpty()); 354 fPathRef.reset(SkPathRef::CreateEmpty());
351 this->resetFields(); 355 this->resetFields();
352 } 356 }
353 357
354 void SkPath::rewind() { 358 void SkPath::rewind() {
355 SkDEBUGCODE(this->validate();) 359 SkDEBUGCODE(this->validate();)
356 360
(...skipping 2621 matching lines...) Expand 10 before | Expand all | Expand 10 after
2978 switch (this->getFillType()) { 2982 switch (this->getFillType()) {
2979 case SkPath::kEvenOdd_FillType: 2983 case SkPath::kEvenOdd_FillType:
2980 case SkPath::kInverseEvenOdd_FillType: 2984 case SkPath::kInverseEvenOdd_FillType:
2981 w &= 1; 2985 w &= 1;
2982 break; 2986 break;
2983 default: 2987 default:
2984 break; 2988 break;
2985 } 2989 }
2986 return SkToBool(w); 2990 return SkToBool(w);
2987 } 2991 }
OLDNEW
« include/gpu/GrContext.h ('K') | « include/gpu/GrContext.h ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698