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

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

Issue 16952006: Replace fixed-size array of effect stages in GrDrawState with two appendable arrays, one for color,… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix comments Created 7 years, 6 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/GrEffectStage.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 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 896
897 SkTDArray<CleanUpData> fCleanUpData; 897 SkTDArray<CleanUpData> fCleanUpData;
898 898
899 GrContext(); // init must be called after the constructor. 899 GrContext(); // init must be called after the constructor.
900 bool init(GrBackend, GrBackendContext); 900 bool init(GrBackend, GrBackendContext);
901 901
902 void setupDrawBuffer(); 902 void setupDrawBuffer();
903 903
904 void flushDrawBuffer(); 904 void flushDrawBuffer();
905 905
906 class AutoRestoreEffects;
906 /// Sets the paint and returns the target to draw into. The paint can be NUL L in which case the 907 /// Sets the paint and returns the target to draw into. The paint can be NUL L in which case the
907 /// draw state is left unmodified. 908 /// draw state is left unmodified.
908 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw); 909 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw, AutoRestoreEffects *);
909 910
910 void internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath& path, 911 void internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath& path,
911 const SkStrokeRec& stroke); 912 const SkStrokeRec& stroke);
912 913
913 GrTexture* createResizedTexture(const GrTextureDesc& desc, 914 GrTexture* createResizedTexture(const GrTextureDesc& desc,
914 const GrCacheID& cacheID, 915 const GrCacheID& cacheID,
915 void* srcData, 916 void* srcData,
916 size_t rowBytes, 917 size_t rowBytes,
917 bool needsFiltering); 918 bool needsFiltering);
918 919
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 } 1020 }
1020 1021
1021 GrTexture* texture() { return fTexture; } 1022 GrTexture* texture() { return fTexture; }
1022 1023
1023 private: 1024 private:
1024 GrContext* fContext; 1025 GrContext* fContext;
1025 GrTexture* fTexture; 1026 GrTexture* fTexture;
1026 }; 1027 };
1027 1028
1028 #endif 1029 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrEffectStage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698