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

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

Issue 866573002: XPFactory lazily initializie in drawstate / GrPaint (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cleanup Created 5 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 | include/gpu/GrPaint.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 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 const Options fOptions; 852 const Options fOptions;
853 853
854 GrContext(const Options&); // init must be called after the constructor. 854 GrContext(const Options&); // init must be called after the constructor.
855 bool init(GrBackend, GrBackendContext); 855 bool init(GrBackend, GrBackendContext);
856 void initMockContext(); 856 void initMockContext();
857 void initCommon(); 857 void initCommon();
858 858
859 void setupDrawBuffer(); 859 void setupDrawBuffer();
860 860
861 class AutoCheckFlush; 861 class AutoCheckFlush;
862 /// Sets the paint and returns the target to draw into. The paint can be NUL L in which case the 862 // Sets the paint and returns the target to draw into. This function is ove rloaded to either
863 /// draw state is left unmodified. 863 // take a GrDrawState, GrPaint, and AutoCheckFlush, or JUST an AutoCheckFlus h
864 GrDrawTarget* prepareToDraw(GrDrawState* ds, const GrPaint* paint, const Aut oCheckFlush*); 864 GrDrawTarget* prepareToDraw(GrDrawState* ds, const GrPaint* paint, const Aut oCheckFlush*);
865 865
866 void internalDrawPath(GrDrawTarget*, 866 void internalDrawPath(GrDrawTarget*,
867 GrDrawState*, 867 GrDrawState*,
868 const SkMatrix& viewMatrix, 868 const SkMatrix& viewMatrix,
869 GrColor, 869 GrColor,
870 bool useAA, 870 bool useAA,
871 const SkPath&, 871 const SkPath&,
872 const GrStrokeInfo&); 872 const GrStrokeInfo&);
873 873
(...skipping 14 matching lines...) Expand all
888 /** 888 /**
889 * This callback allows the resource cache to callback into the GrContext 889 * This callback allows the resource cache to callback into the GrContext
890 * when the cache is still over budget after a purge. 890 * when the cache is still over budget after a purge.
891 */ 891 */
892 static void OverBudgetCB(void* data); 892 static void OverBudgetCB(void* data);
893 893
894 typedef SkRefCnt INHERITED; 894 typedef SkRefCnt INHERITED;
895 }; 895 };
896 896
897 #endif 897 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrPaint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698