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

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

Issue 1421853002: Add immediate mode option for gpu configs in dm (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add assert Created 5 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
« 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 SkTDArray<CleanUpData> fCleanUpData; 406 SkTDArray<CleanUpData> fCleanUpData;
407 407
408 const uint32_t fUniqueID; 408 const uint32_t fUniqueID;
409 409
410 SkAutoTDelete<GrDrawingManager> fDrawingManager; 410 SkAutoTDelete<GrDrawingManager> fDrawingManager;
411 411
412 GrContext(); // init must be called after the constructor. 412 GrContext(); // init must be called after the constructor.
413 bool init(GrBackend, GrBackendContext, const GrContextOptions& options); 413 bool init(GrBackend, GrBackendContext, const GrContextOptions& options);
414 414
415 void initMockContext(); 415 void initMockContext();
416 void initCommon(); 416 void initCommon(const GrContextOptions& options);
417 417
418 /** 418 /**
419 * These functions create premul <-> unpremul effects if it is possible to g enerate a pair 419 * These functions create premul <-> unpremul effects if it is possible to g enerate a pair
420 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O therwise, they 420 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O therwise, they
421 * return NULL. 421 * return NULL.
422 */ 422 */
423 const GrFragmentProcessor* createPMToUPMEffect(GrTexture*, bool swapRAndB, 423 const GrFragmentProcessor* createPMToUPMEffect(GrTexture*, bool swapRAndB,
424 const SkMatrix&) const; 424 const SkMatrix&) const;
425 const GrFragmentProcessor* createUPMToPMEffect(GrTexture*, bool swapRAndB, 425 const GrFragmentProcessor* createUPMToPMEffect(GrTexture*, bool swapRAndB,
426 const SkMatrix&) const; 426 const SkMatrix&) const;
(...skipping 14 matching lines...) Expand all
441 /** 441 /**
442 * A callback similar to the above for use by the TextBlobCache 442 * A callback similar to the above for use by the TextBlobCache
443 * TODO move textblob draw calls below context so we can use the call above. 443 * TODO move textblob draw calls below context so we can use the call above.
444 */ 444 */
445 static void TextBlobCacheOverBudgetCB(void* data); 445 static void TextBlobCacheOverBudgetCB(void* data);
446 446
447 typedef SkRefCnt INHERITED; 447 typedef SkRefCnt INHERITED;
448 }; 448 };
449 449
450 #endif 450 #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