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

Side by Side Diff: src/gpu/text/GrAtlasTextBlob.h

Issue 1880873002: Revert "Revert of Pass effects directly to fontcache (patchset #8 id:140001 of https://codereview.c… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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/GrResourceProvider.cpp ('k') | src/gpu/text/GrAtlasTextBlob.cpp » ('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 2015 Google Inc. 2 * Copyright 2015 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 GrAtlasTextBlob_DEFINED 8 #ifndef GrAtlasTextBlob_DEFINED
9 #define GrAtlasTextBlob_DEFINED 9 #define GrAtlasTextBlob_DEFINED
10 10
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 SubRunInfo& newSubRun = fSubRunInfo.push_back(); 467 SubRunInfo& newSubRun = fSubRunInfo.push_back();
468 const SubRunInfo& prevSubRun = fSubRunInfo.fromBack(1); 468 const SubRunInfo& prevSubRun = fSubRunInfo.fromBack(1);
469 469
470 newSubRun.setAsSuccessor(prevSubRun); 470 newSubRun.setAsSuccessor(prevSubRun);
471 return newSubRun; 471 return newSubRun;
472 } 472 }
473 static const int kMinSubRuns = 1; 473 static const int kMinSubRuns = 1;
474 SkAutoTUnref<SkTypeface> fTypeface; 474 SkAutoTUnref<SkTypeface> fTypeface;
475 SkSTArray<kMinSubRuns, SubRunInfo> fSubRunInfo; 475 SkSTArray<kMinSubRuns, SubRunInfo> fSubRunInfo;
476 SkAutoDescriptor fDescriptor; 476 SkAutoDescriptor fDescriptor;
477 SkScalerContextEffects fEffects;
477 478
478 // Distance field text cannot draw coloremoji, and so has to fall back. However, 479 // Distance field text cannot draw coloremoji, and so has to fall back. However,
479 // though the distance field text and the coloremoji may share the same run, they 480 // though the distance field text and the coloremoji may share the same run, they
480 // will have different descriptors. If fOverrideDescriptor is non-nullp tr, then it 481 // will have different descriptors. If fOverrideDescriptor is non-nullp tr, then it
481 // will be used in place of the run's descriptor to regen texture coords 482 // will be used in place of the run's descriptor to regen texture coords
482 SkAutoTDelete<SkAutoDescriptor> fOverrideDescriptor; // df properties 483 SkAutoTDelete<SkAutoDescriptor> fOverrideDescriptor; // df properties
483 bool fInitialized; 484 bool fInitialized;
484 bool fDrawAsPaths; 485 bool fDrawAsPaths;
485 }; 486 };
486 487
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 // We can reuse distance field text, but only if the new viewmatrix would no t result in 548 // We can reuse distance field text, but only if the new viewmatrix would no t result in
548 // a mip change. Because there can be multiple runs in a blob, we track the overall 549 // a mip change. Because there can be multiple runs in a blob, we track the overall
549 // maximum minimum scale, and minimum maximum scale, we can support before w e need to regen 550 // maximum minimum scale, and minimum maximum scale, we can support before w e need to regen
550 SkScalar fMaxMinScale; 551 SkScalar fMaxMinScale;
551 SkScalar fMinMaxScale; 552 SkScalar fMinMaxScale;
552 int fRunCount; 553 int fRunCount;
553 uint8_t fTextType; 554 uint8_t fTextType;
554 }; 555 };
555 556
556 #endif 557 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrResourceProvider.cpp ('k') | src/gpu/text/GrAtlasTextBlob.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698