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

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

Issue 1673923003: Revert of skia: Add support for CHROMIUM_image backed textures. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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 | include/gpu/GrTypes.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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 * Used to wrap a pre-existing 3D API rendering target as a SkSurface. Skia will not assume 106 * Used to wrap a pre-existing 3D API rendering target as a SkSurface. Skia will not assume
107 * ownership of the render target and the client must ensure the render tar get is valid for the 107 * ownership of the render target and the client must ensure the render tar get is valid for the
108 * lifetime of the SkSurface. 108 * lifetime of the SkSurface.
109 */ 109 */
110 static SkSurface* NewFromBackendRenderTarget(GrContext*, const GrBackendRend erTargetDesc&, 110 static SkSurface* NewFromBackendRenderTarget(GrContext*, const GrBackendRend erTargetDesc&,
111 const SkSurfaceProps*); 111 const SkSurfaceProps*);
112 112
113 /** 113 /**
114 * Return a new surface whose contents will be drawn to an offscreen 114 * Return a new surface whose contents will be drawn to an offscreen
115 * render target, allocated by the surface. 115 * render target, allocated by the surface.
116 *
117 * The GrTextureStorageAllocator will be reused if SkImage snapshots create
118 * additional textures.
119 */ 116 */
120 static SkSurface* NewRenderTarget( 117 static SkSurface* NewRenderTarget(GrContext*, Budgeted, const SkImageInfo&, int sampleCount,
121 GrContext*, Budgeted, const SkImageInfo&, int sampleCount, const SkS urfaceProps* = NULL, 118 const SkSurfaceProps* = NULL);
122 GrTextureStorageAllocator = GrTextureStorageAllocator());
123 119
124 static SkSurface* NewRenderTarget(GrContext* gr, Budgeted b, const SkImageIn fo& info) { 120 static SkSurface* NewRenderTarget(GrContext* gr, Budgeted b, const SkImageIn fo& info) {
125 return NewRenderTarget(gr, b, info, 0); 121 return NewRenderTarget(gr, b, info, 0, NULL);
126 } 122 }
127 123
128 int width() const { return fWidth; } 124 int width() const { return fWidth; }
129 int height() const { return fHeight; } 125 int height() const { return fHeight; }
130 126
131 /** 127 /**
132 * Returns a unique non-zero, unique value identifying the content of this 128 * Returns a unique non-zero, unique value identifying the content of this
133 * surface. Each time the content is changed changed, either by drawing 129 * surface. Each time the content is changed changed, either by drawing
134 * into this surface, or explicitly calling notifyContentChanged()) this 130 * into this surface, or explicitly calling notifyContentChanged()) this
135 * method will return a new value. 131 * method will return a new value.
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 private: 281 private:
286 const SkSurfaceProps fProps; 282 const SkSurfaceProps fProps;
287 const int fWidth; 283 const int fWidth;
288 const int fHeight; 284 const int fHeight;
289 uint32_t fGenerationID; 285 uint32_t fGenerationID;
290 286
291 typedef SkRefCnt INHERITED; 287 typedef SkRefCnt INHERITED;
292 }; 288 };
293 289
294 #endif 290 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698