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

Side by Side Diff: include/gpu/GrContext.h

Issue 1471083002: Add debug option to clip each GrBatch to its device bounds (Closed) Base URL: https://skia.googlesource.com/skia.git@clipbounds
Patch Set: update Created 5 years 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 | « dm/DMSrcSink.cpp ('k') | include/gpu/GrContextOptions.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 GrContext_DEFINED 8 #ifndef GrContext_DEFINED
9 #define GrContext_DEFINED 9 #define GrContext_DEFINED
10 10
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 399
400 // TODO: have the CMM use drawContexts and rm this friending 400 // TODO: have the CMM use drawContexts and rm this friending
401 friend class GrClipMaskManager; // the CMM is friended just so it can call ' drawingManager' 401 friend class GrClipMaskManager; // the CMM is friended just so it can call ' drawingManager'
402 friend class GrDrawingManager; // for access to drawingManager for ProgramU nitTest 402 friend class GrDrawingManager; // for access to drawingManager for ProgramU nitTest
403 GrDrawingManager* drawingManager() { return fDrawingManager; } 403 GrDrawingManager* drawingManager() { return fDrawingManager; }
404 404
405 GrContext(); // init must be called after the constructor. 405 GrContext(); // init must be called after the constructor.
406 bool init(GrBackend, GrBackendContext, const GrContextOptions& options); 406 bool init(GrBackend, GrBackendContext, const GrContextOptions& options);
407 407
408 void initMockContext(); 408 void initMockContext();
409 void initCommon(); 409 void initCommon(const GrContextOptions&);
410 410
411 /** 411 /**
412 * These functions create premul <-> unpremul effects if it is possible to g enerate a pair 412 * These functions create premul <-> unpremul effects if it is possible to g enerate a pair
413 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O therwise, they 413 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O therwise, they
414 * return NULL. 414 * return NULL.
415 */ 415 */
416 const GrFragmentProcessor* createPMToUPMEffect(GrTexture*, bool swapRAndB, 416 const GrFragmentProcessor* createPMToUPMEffect(GrTexture*, bool swapRAndB,
417 const SkMatrix&) const; 417 const SkMatrix&) const;
418 const GrFragmentProcessor* createUPMToPMEffect(GrTexture*, bool swapRAndB, 418 const GrFragmentProcessor* createUPMToPMEffect(GrTexture*, bool swapRAndB,
419 const SkMatrix&) const; 419 const SkMatrix&) const;
(...skipping 14 matching lines...) Expand all
434 /** 434 /**
435 * A callback similar to the above for use by the TextBlobCache 435 * A callback similar to the above for use by the TextBlobCache
436 * TODO move textblob draw calls below context so we can use the call above. 436 * TODO move textblob draw calls below context so we can use the call above.
437 */ 437 */
438 static void TextBlobCacheOverBudgetCB(void* data); 438 static void TextBlobCacheOverBudgetCB(void* data);
439 439
440 typedef SkRefCnt INHERITED; 440 typedef SkRefCnt INHERITED;
441 }; 441 };
442 442
443 #endif 443 #endif
OLDNEW
« no previous file with comments | « dm/DMSrcSink.cpp ('k') | include/gpu/GrContextOptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698