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

Side by Side Diff: src/gpu/GrDrawTarget.cpp

Issue 694933002: Temporary fix to remove drawrect call from GpuGL (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanupcontext
Patch Set: cleanup Created 6 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
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 10
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 /* fallthrough */; 751 /* fallthrough */;
752 case SkPath::kWinding_FillType: 752 case SkPath::kWinding_FillType:
753 case SkPath::kInverseWinding_FillType: 753 case SkPath::kInverseWinding_FillType:
754 *outStencilSettings = winding_path_stencil_settings(); 754 *outStencilSettings = winding_path_stencil_settings();
755 break; 755 break;
756 case SkPath::kEvenOdd_FillType: 756 case SkPath::kEvenOdd_FillType:
757 case SkPath::kInverseEvenOdd_FillType: 757 case SkPath::kInverseEvenOdd_FillType:
758 *outStencilSettings = even_odd_path_stencil_settings(); 758 *outStencilSettings = even_odd_path_stencil_settings();
759 break; 759 break;
760 } 760 }
761 this->getClipMaskManager()->adjustPathStencilParams(outStencilSettings); 761 this->clipMaskManager()->adjustPathStencilParams(outStencilSettings);
762 } 762 }
763 763
764 //////////////////////////////////////////////////////////////////////////////// 764 ////////////////////////////////////////////////////////////////////////////////
765 765
766 GrDrawTarget::AutoStateRestore::AutoStateRestore() { 766 GrDrawTarget::AutoStateRestore::AutoStateRestore() {
767 fDrawTarget = NULL; 767 fDrawTarget = NULL;
768 } 768 }
769 769
770 GrDrawTarget::AutoStateRestore::AutoStateRestore(GrDrawTarget* target, 770 GrDrawTarget::AutoStateRestore::AutoStateRestore(GrDrawTarget* target,
771 ASRInit init, 771 ASRInit init,
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 1188
1189 uint32_t GrDrawTargetCaps::CreateUniqueID() { 1189 uint32_t GrDrawTargetCaps::CreateUniqueID() {
1190 static int32_t gUniqueID = SK_InvalidUniqueID; 1190 static int32_t gUniqueID = SK_InvalidUniqueID;
1191 uint32_t id; 1191 uint32_t id;
1192 do { 1192 do {
1193 id = static_cast<uint32_t>(sk_atomic_inc(&gUniqueID) + 1); 1193 id = static_cast<uint32_t>(sk_atomic_inc(&gUniqueID) + 1);
1194 } while (id == SK_InvalidUniqueID); 1194 } while (id == SK_InvalidUniqueID);
1195 return id; 1195 return id;
1196 } 1196 }
1197 1197
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTarget.h ('k') | src/gpu/GrInOrderDrawBuffer.cpp » ('j') | src/gpu/gl/GrGpuGL.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698