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

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

Issue 14109033: Disable AA for ovals and roundrects if MSAA is enabled (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Fixes from comments Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | include/gpu/GrOvalRenderer.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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef GrContext_DEFINED 10 #ifndef GrContext_DEFINED
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 bool init(GrBackend, GrBackendContext); 895 bool init(GrBackend, GrBackendContext);
896 896
897 void setupDrawBuffer(); 897 void setupDrawBuffer();
898 898
899 void flushDrawBuffer(); 899 void flushDrawBuffer();
900 900
901 /// Sets the paint and returns the target to draw into. The paint can be NUL L in which case the 901 /// Sets the paint and returns the target to draw into. The paint can be NUL L in which case the
902 /// draw state is left unmodified. 902 /// draw state is left unmodified.
903 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw); 903 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw);
904 904
905 void internalDrawPath(GrDrawTarget* target, const GrPaint& paint, const SkPa th& path, 905 void internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath& path,
906 const SkStrokeRec& stroke); 906 const SkStrokeRec& stroke);
907 907
908 GrTexture* createResizedTexture(const GrTextureDesc& desc, 908 GrTexture* createResizedTexture(const GrTextureDesc& desc,
909 const GrCacheID& cacheID, 909 const GrCacheID& cacheID,
910 void* srcData, 910 void* srcData,
911 size_t rowBytes, 911 size_t rowBytes,
912 bool needsFiltering); 912 bool needsFiltering);
913 913
914 // Needed so GrTexture's returnToCache helper function can call 914 // Needed so GrTexture's returnToCache helper function can call
915 // addExistingTextureToCache 915 // addExistingTextureToCache
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 } 1011 }
1012 1012
1013 GrTexture* texture() { return fTexture; } 1013 GrTexture* texture() { return fTexture; }
1014 1014
1015 private: 1015 private:
1016 GrContext* fContext; 1016 GrContext* fContext;
1017 GrTexture* fTexture; 1017 GrTexture* fTexture;
1018 }; 1018 };
1019 1019
1020 #endif 1020 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrOvalRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698