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

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

Issue 837723008: Remove deprecated SkSurface::NewRenderTarget factories (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | no next file » | 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 * Return a new surface whose contents will be drawn to an offscreen 98 * Return a new surface whose contents will be drawn to an offscreen
99 * render target, allocated by the surface. 99 * render target, allocated by the surface.
100 */ 100 */
101 static SkSurface* NewRenderTarget(GrContext*, Budgeted, const SkImageInfo&, int sampleCount, 101 static SkSurface* NewRenderTarget(GrContext*, Budgeted, const SkImageInfo&, int sampleCount,
102 const SkSurfaceProps* = NULL); 102 const SkSurfaceProps* = NULL);
103 103
104 static SkSurface* NewRenderTarget(GrContext* gr, Budgeted b, const SkImageIn fo& info) { 104 static SkSurface* NewRenderTarget(GrContext* gr, Budgeted b, const SkImageIn fo& info) {
105 return NewRenderTarget(gr, b, info, 0, NULL); 105 return NewRenderTarget(gr, b, info, 0, NULL);
106 } 106 }
107 107
108 /**
109 * Deprecated - use the Budgeted param on NewRenderTarget.
110 */
111 static SkSurface* NewScratchRenderTarget(GrContext* gr, const SkImageInfo& i nfo,
112 int sampleCount, const SkSurfacePro ps* props) {
113 return NewRenderTarget(gr, kYes_Budgeted, info, sampleCount, props);
114 }
115
116 /**
117 * Deprecated - use the version that takes a Budgeted param.
118 */
119 static SkSurface* NewRenderTarget(GrContext* gr, const SkImageInfo& info, in t sampleCount,
120 const SkSurfaceProps* props) {
121 return NewRenderTarget(gr, kNo_Budgeted, info, sampleCount, props);
122 }
123
124 int width() const { return fWidth; } 108 int width() const { return fWidth; }
125 int height() const { return fHeight; } 109 int height() const { return fHeight; }
126 110
127 /** 111 /**
128 * Returns a unique non-zero, unique value identifying the content of this 112 * Returns a unique non-zero, unique value identifying the content of this
129 * surface. Each time the content is changed changed, either by drawing 113 * surface. Each time the content is changed changed, either by drawing
130 * into this surface, or explicitly calling notifyContentChanged()) this 114 * into this surface, or explicitly calling notifyContentChanged()) this
131 * method will return a new value. 115 * method will return a new value.
132 * 116 *
133 * If this surface is empty (i.e. has a zero-dimention), this will return 117 * If this surface is empty (i.e. has a zero-dimention), this will return
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 private: 227 private:
244 const SkSurfaceProps fProps; 228 const SkSurfaceProps fProps;
245 const int fWidth; 229 const int fWidth;
246 const int fHeight; 230 const int fHeight;
247 uint32_t fGenerationID; 231 uint32_t fGenerationID;
248 232
249 typedef SkRefCnt INHERITED; 233 typedef SkRefCnt INHERITED;
250 }; 234 };
251 235
252 #endif 236 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698