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

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

Issue 38573007: Do not apply hairline optimization for paths if nv_path_rendering is used (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: address review comments Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/core/SkDraw.cpp » ('j') | src/core/SkDrawProcs.h » ('J')
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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 bool init(GrBackend, GrBackendContext); 903 bool init(GrBackend, GrBackendContext);
904 904
905 void setupDrawBuffer(); 905 void setupDrawBuffer();
906 906
907 class AutoRestoreEffects; 907 class AutoRestoreEffects;
908 class AutoCheckFlush; 908 class AutoCheckFlush;
909 /// Sets the paint and returns the target to draw into. The paint can be NUL L in which case the 909 /// Sets the paint and returns the target to draw into. The paint can be NUL L in which case the
910 /// draw state is left unmodified. 910 /// draw state is left unmodified.
911 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw, AutoRestoreEffects *, AutoCheckFlush*); 911 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw, AutoRestoreEffects *, AutoCheckFlush*);
912 912
913 void internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath& path, 913 void internalDrawPath(GrDrawTarget* target, const GrPaint&, bool useAA, cons t SkPath& path,
914 const SkStrokeRec& stroke); 914 const SkStrokeRec& stroke);
915 915
916 GrTexture* createResizedTexture(const GrTextureDesc& desc, 916 GrTexture* createResizedTexture(const GrTextureDesc& desc,
917 const GrCacheID& cacheID, 917 const GrCacheID& cacheID,
918 void* srcData, 918 void* srcData,
919 size_t rowBytes, 919 size_t rowBytes,
920 bool filter); 920 bool filter);
921 921
922 // Needed so GrTexture's returnToCache helper function can call 922 // Needed so GrTexture's returnToCache helper function can call
923 // addExistingTextureToCache 923 // addExistingTextureToCache
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1028 } 1028 }
1029 1029
1030 GrTexture* texture() { return fTexture; } 1030 GrTexture* texture() { return fTexture; }
1031 1031
1032 private: 1032 private:
1033 GrContext* fContext; 1033 GrContext* fContext;
1034 GrTexture* fTexture; 1034 GrTexture* fTexture;
1035 }; 1035 };
1036 1036
1037 #endif 1037 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkDraw.cpp » ('j') | src/core/SkDrawProcs.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698