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

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

Issue 1410663005: Add text animation sample; tweak DrawShip sample (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Correct fix for CrOS Created 5 years, 1 month 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/SampleApp.gyp ('k') | samplecode/SampleAnimatedText.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 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 this is for testing only */ 342 this is for testing only */
343 void setTextBlobCacheLimit_ForTesting(size_t bytes); 343 void setTextBlobCacheLimit_ForTesting(size_t bytes);
344 344
345 /** Specify the sizes of the GrAtlasTextContext atlases. The configs pointe r below should be 345 /** Specify the sizes of the GrAtlasTextContext atlases. The configs pointe r below should be
346 to an array of 3 entries */ 346 to an array of 3 entries */
347 void setTextContextAtlasSizes_ForTesting(const GrBatchAtlasConfig* configs); 347 void setTextContextAtlasSizes_ForTesting(const GrBatchAtlasConfig* configs);
348 348
349 /** Enumerates all cached GPU resources and dumps their memory to traceMemor yDump. */ 349 /** Enumerates all cached GPU resources and dumps their memory to traceMemor yDump. */
350 void dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const; 350 void dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const;
351 351
352 /** Draw font cache texture to render target */
353 void drawFontCache(const SkRect& rect, GrMaskFormat format, const SkPaint& p aint,
354 GrRenderTarget* target);
355
352 private: 356 private:
353 GrGpu* fGpu; 357 GrGpu* fGpu;
354 const GrCaps* fCaps; 358 const GrCaps* fCaps;
355 GrResourceCache* fResourceCache; 359 GrResourceCache* fResourceCache;
356 // this union exists because the inheritance of GrTextureProvider->GrResourc eProvider 360 // this union exists because the inheritance of GrTextureProvider->GrResourc eProvider
357 // is in a private header. 361 // is in a private header.
358 union { 362 union {
359 GrResourceProvider* fResourceProvider; 363 GrResourceProvider* fResourceProvider;
360 GrTextureProvider* fTextureProvider; 364 GrTextureProvider* fTextureProvider;
361 }; 365 };
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 /** 433 /**
430 * A callback similar to the above for use by the TextBlobCache 434 * A callback similar to the above for use by the TextBlobCache
431 * TODO move textblob draw calls below context so we can use the call above. 435 * TODO move textblob draw calls below context so we can use the call above.
432 */ 436 */
433 static void TextBlobCacheOverBudgetCB(void* data); 437 static void TextBlobCacheOverBudgetCB(void* data);
434 438
435 typedef SkRefCnt INHERITED; 439 typedef SkRefCnt INHERITED;
436 }; 440 };
437 441
438 #endif 442 #endif
OLDNEW
« no previous file with comments | « gyp/SampleApp.gyp ('k') | samplecode/SampleAnimatedText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698