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

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

Issue 1117433002: Remove GrFlushToGpuDrawTarget and move functionality up to GrDrawTarget. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more Created 5 years, 7 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/GrContext.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
11 #include "GrClip.h" 11 #include "GrClip.h"
12 #include "GrColor.h" 12 #include "GrColor.h"
13 #include "GrPaint.h" 13 #include "GrPaint.h"
14 #include "GrPathRendererChain.h" 14 #include "GrPathRendererChain.h"
15 #include "GrRenderTarget.h" 15 #include "GrRenderTarget.h"
16 #include "GrTexture.h" 16 #include "GrTexture.h"
17 #include "SkMatrix.h" 17 #include "SkMatrix.h"
18 #include "SkPathEffect.h" 18 #include "SkPathEffect.h"
19 #include "SkTypes.h" 19 #include "SkTypes.h"
20 20
21 class GrAARectRenderer; 21 class GrAARectRenderer;
22 class GrBatchFontCache; 22 class GrBatchFontCache;
23 class GrDrawTarget; 23 class GrDrawTarget;
24 class GrFragmentProcessor; 24 class GrFragmentProcessor;
25 class GrGpu; 25 class GrGpu;
26 class GrGpuTraceMarker; 26 class GrGpuTraceMarker;
27 class GrIndexBuffer; 27 class GrIndexBuffer;
28 class GrIndexBufferAllocPool; 28 class GrIndexBufferAllocPool;
29 class GrInOrderDrawBuffer;
30 class GrLayerCache; 29 class GrLayerCache;
31 class GrOvalRenderer; 30 class GrOvalRenderer;
32 class GrPath; 31 class GrPath;
33 class GrPathRenderer; 32 class GrPathRenderer;
34 class GrPipelineBuilder; 33 class GrPipelineBuilder;
35 class GrResourceEntry; 34 class GrResourceEntry;
36 class GrResourceCache; 35 class GrResourceCache;
37 class GrTestTarget; 36 class GrTestTarget;
38 class GrTextBlobCache; 37 class GrTextBlobCache;
39 class GrTextContext; 38 class GrTextContext;
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 GrResourceCache* fResourceCache; 693 GrResourceCache* fResourceCache;
695 GrBatchFontCache* fBatchFontCache; 694 GrBatchFontCache* fBatchFontCache;
696 SkAutoTDelete<GrLayerCache> fLayerCache; 695 SkAutoTDelete<GrLayerCache> fLayerCache;
697 SkAutoTDelete<GrTextBlobCache> fTextBlobCache; 696 SkAutoTDelete<GrTextBlobCache> fTextBlobCache;
698 697
699 GrPathRendererChain* fPathRendererChain; 698 GrPathRendererChain* fPathRendererChain;
700 GrSoftwarePathRenderer* fSoftwarePathRenderer; 699 GrSoftwarePathRenderer* fSoftwarePathRenderer;
701 700
702 GrVertexBufferAllocPool* fDrawBufferVBAllocPool; 701 GrVertexBufferAllocPool* fDrawBufferVBAllocPool;
703 GrIndexBufferAllocPool* fDrawBufferIBAllocPool; 702 GrIndexBufferAllocPool* fDrawBufferIBAllocPool;
704 GrInOrderDrawBuffer* fDrawBuffer; 703 GrDrawTarget* fDrawBuffer;
705 704
706 // Set by OverbudgetCB() to request that GrContext flush before exiting a dr aw. 705 // Set by OverbudgetCB() to request that GrContext flush before exiting a dr aw.
707 bool fFlushToReduceCacheSize; 706 bool fFlushToReduceCacheSize;
708 GrAARectRenderer* fAARectRenderer; 707 GrAARectRenderer* fAARectRenderer;
709 GrOvalRenderer* fOvalRenderer; 708 GrOvalRenderer* fOvalRenderer;
710 709
711 bool fDidTestPMConversions; 710 bool fDidTestPMConversions;
712 int fPMToUPMConversion; 711 int fPMToUPMConversion;
713 int fUPMToPMConversion; 712 int fUPMToPMConversion;
714 713
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 */ 784 */
786 static void TextBlobCacheOverBudgetCB(void* data); 785 static void TextBlobCacheOverBudgetCB(void* data);
787 786
788 // TODO see note on createTextContext 787 // TODO see note on createTextContext
789 friend class SkGpuDevice; 788 friend class SkGpuDevice;
790 789
791 typedef SkRefCnt INHERITED; 790 typedef SkRefCnt INHERITED;
792 }; 791 };
793 792
794 #endif 793 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698