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

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

Issue 1950523002: Remove GrLayerHoister (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Forgot to remove some files Created 4 years, 5 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 | « include/core/SkPictureRecorder.h ('k') | src/core/SkBigPicture.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 12 matching lines...) Expand all
23 23
24 struct GrBatchAtlasConfig; 24 struct GrBatchAtlasConfig;
25 class GrBatchFontCache; 25 class GrBatchFontCache;
26 struct GrContextOptions; 26 struct GrContextOptions;
27 class GrContextThreadSafeProxy; 27 class GrContextThreadSafeProxy;
28 class GrDrawingManager; 28 class GrDrawingManager;
29 class GrDrawContext; 29 class GrDrawContext;
30 class GrFragmentProcessor; 30 class GrFragmentProcessor;
31 class GrGpu; 31 class GrGpu;
32 class GrIndexBuffer; 32 class GrIndexBuffer;
33 class GrLayerCache;
34 class GrOvalRenderer; 33 class GrOvalRenderer;
35 class GrPath; 34 class GrPath;
36 class GrPipelineBuilder; 35 class GrPipelineBuilder;
37 class GrResourceEntry; 36 class GrResourceEntry;
38 class GrResourceCache; 37 class GrResourceCache;
39 class GrResourceProvider; 38 class GrResourceProvider;
40 class GrTestTarget; 39 class GrTestTarget;
41 class GrTextBlobCache; 40 class GrTextBlobCache;
42 class GrTextContext; 41 class GrTextContext;
43 class GrTextureParams; 42 class GrTextureParams;
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 /** 338 /**
340 * An ID associated with this context, guaranteed to be unique. 339 * An ID associated with this context, guaranteed to be unique.
341 */ 340 */
342 uint32_t uniqueID() { return fUniqueID; } 341 uint32_t uniqueID() { return fUniqueID; }
343 342
344 /////////////////////////////////////////////////////////////////////////// 343 ///////////////////////////////////////////////////////////////////////////
345 // Functions intended for internal use only. 344 // Functions intended for internal use only.
346 GrGpu* getGpu() { return fGpu; } 345 GrGpu* getGpu() { return fGpu; }
347 const GrGpu* getGpu() const { return fGpu; } 346 const GrGpu* getGpu() const { return fGpu; }
348 GrBatchFontCache* getBatchFontCache() { return fBatchFontCache; } 347 GrBatchFontCache* getBatchFontCache() { return fBatchFontCache; }
349 GrLayerCache* getLayerCache() { return fLayerCache.get(); }
350 GrTextBlobCache* getTextBlobCache() { return fTextBlobCache; } 348 GrTextBlobCache* getTextBlobCache() { return fTextBlobCache; }
351 bool abandoned() const; 349 bool abandoned() const;
352 GrResourceProvider* resourceProvider() { return fResourceProvider; } 350 GrResourceProvider* resourceProvider() { return fResourceProvider; }
353 const GrResourceProvider* resourceProvider() const { return fResourceProvide r; } 351 const GrResourceProvider* resourceProvider() const { return fResourceProvide r; }
354 GrResourceCache* getResourceCache() { return fResourceCache; } 352 GrResourceCache* getResourceCache() { return fResourceCache; }
355 353
356 // Called by tests that draw directly to the context via GrDrawContext 354 // Called by tests that draw directly to the context via GrDrawContext
357 void getTestTarget(GrTestTarget*, sk_sp<GrDrawContext>); 355 void getTestTarget(GrTestTarget*, sk_sp<GrDrawContext>);
358 356
359 /** Reset GPU stats */ 357 /** Reset GPU stats */
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 // this union exists because the inheritance of GrTextureProvider->GrResourc eProvider 393 // this union exists because the inheritance of GrTextureProvider->GrResourc eProvider
396 // is in a private header. 394 // is in a private header.
397 union { 395 union {
398 GrResourceProvider* fResourceProvider; 396 GrResourceProvider* fResourceProvider;
399 GrTextureProvider* fTextureProvider; 397 GrTextureProvider* fTextureProvider;
400 }; 398 };
401 399
402 SkAutoTUnref<GrContextThreadSafeProxy> fThreadSafeProxy; 400 SkAutoTUnref<GrContextThreadSafeProxy> fThreadSafeProxy;
403 401
404 GrBatchFontCache* fBatchFontCache; 402 GrBatchFontCache* fBatchFontCache;
405 SkAutoTDelete<GrLayerCache> fLayerCache;
406 SkAutoTDelete<GrTextBlobCache> fTextBlobCache; 403 SkAutoTDelete<GrTextBlobCache> fTextBlobCache;
407 404
408 // Set by OverbudgetCB() to request that GrContext flush before exiting a dr aw. 405 // Set by OverbudgetCB() to request that GrContext flush before exiting a dr aw.
409 bool fFlushToReduceCacheSize; 406 bool fFlushToReduceCacheSize;
410 bool fDidTestPMConversions; 407 bool fDidTestPMConversions;
411 int fPMToUPMConversion; 408 int fPMToUPMConversion;
412 int fUPMToPMConversion; 409 int fUPMToPMConversion;
413 // The sw backend may call GrContext::readSurfacePixels on multiple threads 410 // The sw backend may call GrContext::readSurfacePixels on multiple threads
414 // We may transfer the responsibilty for using a mutex to the sw backend 411 // We may transfer the responsibilty for using a mutex to the sw backend
415 // when there are fewer code paths that lead to a readSurfacePixels call 412 // when there are fewer code paths that lead to a readSurfacePixels call
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 SkAutoTUnref<const GrCaps> fCaps; 494 SkAutoTUnref<const GrCaps> fCaps;
498 uint32_t fContextUniqueID; 495 uint32_t fContextUniqueID;
499 496
500 friend class GrContext; 497 friend class GrContext;
501 friend class SkImage; 498 friend class SkImage;
502 499
503 typedef SkRefCnt INHERITED; 500 typedef SkRefCnt INHERITED;
504 }; 501 };
505 502
506 #endif 503 #endif
OLDNEW
« no previous file with comments | « include/core/SkPictureRecorder.h ('k') | src/core/SkBigPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698