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

Side by Side Diff: include/core/SkSurface.h

Issue 354533004: Begin atlasing (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix unit test Created 6 years, 5 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 | « gyp/tests.gypi ('k') | include/gpu/GrRect.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 2012 Google Inc. 2 * Copyright 2012 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 SkSurface_DEFINED 8 #ifndef SkSurface_DEFINED
9 #define SkSurface_DEFINED 9 #define SkSurface_DEFINED
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 /** 66 /**
67 * This will use signed distance fields for text rendering when possibl e 67 * This will use signed distance fields for text rendering when possibl e
68 */ 68 */
69 kDistanceField_TextRenderMode, 69 kDistanceField_TextRenderMode,
70 }; 70 };
71 71
72 /** 72 /**
73 * Return a new surface using the specified render target. 73 * Return a new surface using the specified render target.
74 */ 74 */
75 static SkSurface* NewRenderTargetDirect(GrRenderTarget*, 75 static SkSurface* NewRenderTargetDirect(GrRenderTarget*,
76 TextRenderMode trm = kStandard_TextR enderMode); 76 TextRenderMode trm = kStandard_TextR enderMode,
77 bool clear = true);
bsalomon 2014/06/26 20:37:29 should be make this a flags bitfield (with only on
77 78
78 /** 79 /**
79 * Return a new surface whose contents will be drawn to an offscreen 80 * Return a new surface whose contents will be drawn to an offscreen
80 * render target, allocated by the surface. 81 * render target, allocated by the surface.
81 */ 82 */
82 static SkSurface* NewRenderTarget(GrContext*, const SkImageInfo&, int sample Count = 0, 83 static SkSurface* NewRenderTarget(GrContext*, const SkImageInfo&, int sample Count = 0,
83 TextRenderMode trm = kStandard_TextRenderM ode); 84 TextRenderMode trm = kStandard_TextRenderM ode);
84 85
85 /** 86 /**
86 * Return a new surface whose contents will be drawn to an offscreen 87 * Return a new surface whose contents will be drawn to an offscreen
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 196
196 private: 197 private:
197 const int fWidth; 198 const int fWidth;
198 const int fHeight; 199 const int fHeight;
199 uint32_t fGenerationID; 200 uint32_t fGenerationID;
200 201
201 typedef SkRefCnt INHERITED; 202 typedef SkRefCnt INHERITED;
202 }; 203 };
203 204
204 #endif 205 #endif
OLDNEW
« no previous file with comments | « gyp/tests.gypi ('k') | include/gpu/GrRect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698