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

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

Issue 438023004: Enable gpu Debug markers if tracing category skia.gpu is enabled (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Uniquify var names Created 6 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 | « src/gpu/GrContext.cpp ('k') | src/gpu/GrTracing.h » ('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 2010 Google Inc. 2 * Copyright 2010 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 GrDrawTarget_DEFINED 8 #ifndef GrDrawTarget_DEFINED
9 #define GrDrawTarget_DEFINED 9 #define GrDrawTarget_DEFINED
10 10
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 /** 542 /**
543 * For subclass internal use to invoke a call to onDrawPaths(). 543 * For subclass internal use to invoke a call to onDrawPaths().
544 */ 544 */
545 void executeDrawPaths(const GrPathRange* pathRange, 545 void executeDrawPaths(const GrPathRange* pathRange,
546 const uint32_t indices[], int count, 546 const uint32_t indices[], int count,
547 const float transforms[], PathTransformType transforms Type, 547 const float transforms[], PathTransformType transforms Type,
548 SkPath::FillType fill, 548 SkPath::FillType fill,
549 const GrDeviceCoordTexture* dstCopy) { 549 const GrDeviceCoordTexture* dstCopy) {
550 this->onDrawPaths(pathRange, indices, count, transforms, transformsType, fill, dstCopy); 550 this->onDrawPaths(pathRange, indices, count, transforms, transformsType, fill, dstCopy);
551 } 551 }
552
553 inline bool isGpuTracingEnabled() const {
554 return this->getContext()->isGpuTracingEnabled();
555 }
556
557 //////////////////////////////////////////////////////////////////////////// 552 ////////////////////////////////////////////////////////////////////////////
558 553
559 /** 554 /**
560 * See AutoStateRestore below. 555 * See AutoStateRestore below.
561 */ 556 */
562 enum ASRInit { 557 enum ASRInit {
563 kPreserve_ASRInit, 558 kPreserve_ASRInit,
564 kReset_ASRInit 559 kReset_ASRInit
565 }; 560 };
566 561
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 GrContext* fContext; 975 GrContext* fContext;
981 // To keep track that we always have at least as many debug marker adds as r emoves 976 // To keep track that we always have at least as many debug marker adds as r emoves
982 int fGpuTraceMar kerCount; 977 int fGpuTraceMar kerCount;
983 GrTraceMarkerSet fActiveTrace Markers; 978 GrTraceMarkerSet fActiveTrace Markers;
984 GrTraceMarkerSet fStoredTrace Markers; 979 GrTraceMarkerSet fStoredTrace Markers;
985 980
986 typedef SkRefCnt INHERITED; 981 typedef SkRefCnt INHERITED;
987 }; 982 };
988 983
989 #endif 984 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrTracing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698