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

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

Issue 1567093002: Guard SkGpuDevice (Closed) Base URL: https://skia.googlesource.com/skia.git@gpudeviceguards2
Patch Set: rebase Created 4 years, 11 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 | « no previous file | src/gpu/SkGpuDevice.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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 void setTextContextAtlasSizes_ForTesting(const GrBatchAtlasConfig* configs); 354 void setTextContextAtlasSizes_ForTesting(const GrBatchAtlasConfig* configs);
355 355
356 /** Enumerates all cached GPU resources and dumps their memory to traceMemor yDump. */ 356 /** Enumerates all cached GPU resources and dumps their memory to traceMemor yDump. */
357 void dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const; 357 void dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const;
358 358
359 /** Get pointer to atlas texture for given mask format */ 359 /** Get pointer to atlas texture for given mask format */
360 GrTexture* getFontAtlasTexture(GrMaskFormat format); 360 GrTexture* getFontAtlasTexture(GrMaskFormat format);
361 361
362 GrAuditTrail* getAuditTrail() { return &fAuditTrail; } 362 GrAuditTrail* getAuditTrail() { return &fAuditTrail; }
363 363
364 /** This is only useful for debug purposes */
365 SkDEBUGCODE(GrSingleOwner* debugSingleOwner() const { return &fSingleOwner; } )
366
364 private: 367 private:
365 GrGpu* fGpu; 368 GrGpu* fGpu;
366 const GrCaps* fCaps; 369 const GrCaps* fCaps;
367 GrResourceCache* fResourceCache; 370 GrResourceCache* fResourceCache;
368 // this union exists because the inheritance of GrTextureProvider->GrResourc eProvider 371 // this union exists because the inheritance of GrTextureProvider->GrResourc eProvider
369 // is in a private header. 372 // is in a private header.
370 union { 373 union {
371 GrResourceProvider* fResourceProvider; 374 GrResourceProvider* fResourceProvider;
372 GrTextureProvider* fTextureProvider; 375 GrTextureProvider* fTextureProvider;
373 }; 376 };
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 /** 452 /**
450 * A callback similar to the above for use by the TextBlobCache 453 * A callback similar to the above for use by the TextBlobCache
451 * TODO move textblob draw calls below context so we can use the call above. 454 * TODO move textblob draw calls below context so we can use the call above.
452 */ 455 */
453 static void TextBlobCacheOverBudgetCB(void* data); 456 static void TextBlobCacheOverBudgetCB(void* data);
454 457
455 typedef SkRefCnt INHERITED; 458 typedef SkRefCnt INHERITED;
456 }; 459 };
457 460
458 #endif 461 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698