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

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

Issue 1157773003: Move SkGpuDevice::internalDrawPath to GrBlurUtils::drawPathWithMaskFilter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more cleanup Created 5 years, 6 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 | « gyp/gpu.gypi ('k') | src/gpu/GrAtlasTextContext.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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 DrawingMgr fDrawingMgr; 473 DrawingMgr fDrawingMgr;
474 474
475 void initMockContext(); 475 void initMockContext();
476 void initCommon(); 476 void initCommon();
477 477
478 /** 478 /**
479 * Creates a new text rendering context that is optimal for the 479 * Creates a new text rendering context that is optimal for the
480 * render target and the context. Caller assumes the ownership 480 * render target and the context. Caller assumes the ownership
481 * of the returned object. The returned object must be deleted 481 * of the returned object. The returned object must be deleted
482 * before the context is destroyed. 482 * before the context is destroyed.
483 * TODO we can possibly bury this behind context, but we need to be able to use the 483 * TODO bury this behind context!
484 * drawText_asPaths logic on SkGpuDevice
485 */ 484 */
486 GrTextContext* createTextContext(GrRenderTarget*, 485 GrTextContext* createTextContext(GrRenderTarget*,
487 SkGpuDevice*,
488 const SkDeviceProperties&, 486 const SkDeviceProperties&,
489 bool enableDistanceFieldFonts); 487 bool enableDistanceFieldFonts);
490 488
491 489
492 /** 490 /**
493 * These functions create premul <-> unpremul effects if it is possible to g enerate a pair 491 * These functions create premul <-> unpremul effects if it is possible to g enerate a pair
494 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O therwise, they 492 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O therwise, they
495 * return NULL. 493 * return NULL.
496 */ 494 */
497 const GrFragmentProcessor* createPMToUPMEffect(GrTexture*, bool swapRAndB, c onst SkMatrix&); 495 const GrFragmentProcessor* createPMToUPMEffect(GrTexture*, bool swapRAndB, c onst SkMatrix&);
(...skipping 11 matching lines...) Expand all
509 */ 507 */
510 static void TextBlobCacheOverBudgetCB(void* data); 508 static void TextBlobCacheOverBudgetCB(void* data);
511 509
512 // TODO see note on createTextContext 510 // TODO see note on createTextContext
513 friend class SkGpuDevice; 511 friend class SkGpuDevice;
514 512
515 typedef SkRefCnt INHERITED; 513 typedef SkRefCnt INHERITED;
516 }; 514 };
517 515
518 #endif 516 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/GrAtlasTextContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698