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

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

Issue 257393004: Convert GrCrash->SkFAIL GrDebugCrash->SkDEBUGFAIL (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: whitespace change Created 6 years, 7 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
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 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 GrGpu_DEFINED 8 #ifndef GrGpu_DEFINED
9 #define GrGpu_DEFINED 9 #define GrGpu_DEFINED
10 10
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 case kTriangles_GrPrimitiveType: 338 case kTriangles_GrPrimitiveType:
339 case kTriangleStrip_GrPrimitiveType: 339 case kTriangleStrip_GrPrimitiveType:
340 case kTriangleFan_GrPrimitiveType: 340 case kTriangleFan_GrPrimitiveType:
341 return kDrawTriangles_DrawType; 341 return kDrawTriangles_DrawType;
342 case kPoints_GrPrimitiveType: 342 case kPoints_GrPrimitiveType:
343 return kDrawPoints_DrawType; 343 return kDrawPoints_DrawType;
344 case kLines_GrPrimitiveType: 344 case kLines_GrPrimitiveType:
345 case kLineStrip_GrPrimitiveType: 345 case kLineStrip_GrPrimitiveType:
346 return kDrawLines_DrawType; 346 return kDrawLines_DrawType;
347 default: 347 default:
348 GrCrash("Unexpected primitive type"); 348 SkFAIL("Unexpected primitive type");
349 return kDrawTriangles_DrawType; 349 return kDrawTriangles_DrawType;
350 } 350 }
351 } 351 }
352 352
353 // prepares clip flushes gpu state before a draw 353 // prepares clip flushes gpu state before a draw
354 bool setupClipAndFlushState(DrawType, 354 bool setupClipAndFlushState(DrawType,
355 const GrDeviceCoordTexture* dstCopy, 355 const GrDeviceCoordTexture* dstCopy,
356 GrDrawState::AutoRestoreEffects* are, 356 GrDrawState::AutoRestoreEffects* are,
357 const SkRect* devBounds); 357 const SkRect* devBounds);
358 358
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 // these are mutable so they can be created on-demand 515 // these are mutable so they can be created on-demand
516 mutable GrIndexBuffer* fQuadInd exBuffer; 516 mutable GrIndexBuffer* fQuadInd exBuffer;
517 // Used to abandon/release all resources created by this GrGpu. TODO: Move t his 517 // Used to abandon/release all resources created by this GrGpu. TODO: Move t his
518 // functionality to GrResourceCache. 518 // functionality to GrResourceCache.
519 ResourceList fResourc eList; 519 ResourceList fResourc eList;
520 520
521 typedef GrDrawTarget INHERITED; 521 typedef GrDrawTarget INHERITED;
522 }; 522 };
523 523
524 #endif 524 #endif
OLDNEW
« include/core/SkTypes.h ('K') | « src/gpu/GrDrawTarget.cpp ('k') | src/gpu/GrGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698