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

Side by Side Diff: include/core/SkBitmapDevice.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 2013 Google Inc. 3 * Copyright 2013 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 #ifndef SkBitmapDevice_DEFINED 9 #ifndef SkBitmapDevice_DEFINED
10 #define SkBitmapDevice_DEFINED 10 #define SkBitmapDevice_DEFINED
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 */ 270 */
271 virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config config, 271 virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config config,
272 int width, int height, 272 int width, int height,
273 bool isOpaque, 273 bool isOpaque,
274 Usage usage) SK_OVERRIDE; 274 Usage usage) SK_OVERRIDE;
275 275
276 /** Causes any deferred drawing to the device to be completed. 276 /** Causes any deferred drawing to the device to be completed.
277 */ 277 */
278 virtual void flush() SK_OVERRIDE {} 278 virtual void flush() SK_OVERRIDE {}
279 279
280 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE;
281
280 SkBitmap fBitmap; 282 SkBitmap fBitmap;
281 283
282 typedef SkBaseDevice INHERITED; 284 typedef SkBaseDevice INHERITED;
283 }; 285 };
284 286
285 #endif // SkBitmapDevice_DEFINED 287 #endif // SkBitmapDevice_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698