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

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

Issue 154163002: remove SkCanvas::createCompatibleDevice, and add SkCanvas::newSurface (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
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 10
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 // used by createCompatibleDevice 163 // used by createCompatibleDevice
164 SkGpuDevice(GrContext*, GrTexture* texture, bool needClear); 164 SkGpuDevice(GrContext*, GrTexture* texture, bool needClear);
165 165
166 // override from SkBaseDevice 166 // override from SkBaseDevice
167 virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config config, 167 virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config config,
168 int width, int height, 168 int width, int height,
169 bool isOpaque, 169 bool isOpaque,
170 Usage usage) SK_OVERRIDE; 170 Usage usage) SK_OVERRIDE;
171 171
172 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE;
173
172 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t o override 174 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t o override
173 // SkDraw's matrix and draw in device coords. 175 // SkDraw's matrix and draw in device coords.
174 void prepareDraw(const SkDraw&, bool forceIdentity); 176 void prepareDraw(const SkDraw&, bool forceIdentity);
175 177
176 /** 178 /**
177 * Implementation for both drawBitmap and drawBitmapRect. 179 * Implementation for both drawBitmap and drawBitmapRect.
178 */ 180 */
179 void drawBitmapCommon(const SkDraw&, 181 void drawBitmapCommon(const SkDraw&,
180 const SkBitmap& bitmap, 182 const SkBitmap& bitmap,
181 const SkRect* srcRectPtr, 183 const SkRect* srcRectPtr,
(...skipping 25 matching lines...) Expand all
207 const GrTextureParams& params, 209 const GrTextureParams& params,
208 const SkPaint& paint, 210 const SkPaint& paint,
209 SkCanvas::DrawBitmapRectFlags flags, 211 SkCanvas::DrawBitmapRectFlags flags,
210 int tileSize, 212 int tileSize,
211 bool bicubic); 213 bool bicubic);
212 214
213 typedef SkBitmapDevice INHERITED; 215 typedef SkBitmapDevice INHERITED;
214 }; 216 };
215 217
216 #endif 218 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698