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

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

Issue 20362002: make the filter mode for GrTextureAccess an enum so we can plumb down (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fall back to mipmaps for HQ sampling (for now) Created 7 years, 4 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/GrTexture.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 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 /// draw state is left unmodified. 894 /// draw state is left unmodified.
895 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw, AutoRestoreEffects *); 895 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw, AutoRestoreEffects *);
896 896
897 void internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath& path, 897 void internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath& path,
898 const SkStrokeRec& stroke); 898 const SkStrokeRec& stroke);
899 899
900 GrTexture* createResizedTexture(const GrTextureDesc& desc, 900 GrTexture* createResizedTexture(const GrTextureDesc& desc,
901 const GrCacheID& cacheID, 901 const GrCacheID& cacheID,
902 void* srcData, 902 void* srcData,
903 size_t rowBytes, 903 size_t rowBytes,
904 bool needsFiltering); 904 bool filter);
905 905
906 // Needed so GrTexture's returnToCache helper function can call 906 // Needed so GrTexture's returnToCache helper function can call
907 // addExistingTextureToCache 907 // addExistingTextureToCache
908 friend class GrTexture; 908 friend class GrTexture;
909 909
910 // Add an existing texture to the texture cache. This is intended solely 910 // Add an existing texture to the texture cache. This is intended solely
911 // for use with textures released from an GrAutoScratchTexture. 911 // for use with textures released from an GrAutoScratchTexture.
912 void addExistingTextureToCache(GrTexture* texture); 912 void addExistingTextureToCache(GrTexture* texture);
913 913
914 /** 914 /**
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 } 1012 }
1013 1013
1014 GrTexture* texture() { return fTexture; } 1014 GrTexture* texture() { return fTexture; }
1015 1015
1016 private: 1016 private:
1017 GrContext* fContext; 1017 GrContext* fContext;
1018 GrTexture* fTexture; 1018 GrTexture* fTexture;
1019 }; 1019 };
1020 1020
1021 #endif 1021 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrTexture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698