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

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

Issue 1006923004: add onCreateDevice to eventually replace onCreateCompatibleDevice (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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 2010 The Android Open Source Project 2 * Copyright 2010 The Android Open Source Project
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 SkDevice_DEFINED 8 #ifndef SkDevice_DEFINED
9 #define SkDevice_DEFINED 9 #define SkDevice_DEFINED
10 10
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 347
348 const SkImageInfo fInfo; 348 const SkImageInfo fInfo;
349 const Usage fUsage; 349 const Usage fUsage;
350 const SkPixelGeometry fPixelGeometry; 350 const SkPixelGeometry fPixelGeometry;
351 }; 351 };
352 352
353 virtual SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) { 353 virtual SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) {
354 return NULL; 354 return NULL;
355 } 355 }
356 356
357 // Will replace onCreateCompatibleDevice
358 virtual SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) {
359 return NULL;
360 }
361
357 virtual void initForRootLayer(SkPixelGeometry geo); 362 virtual void initForRootLayer(SkPixelGeometry geo);
358 363
359 private: 364 private:
360 friend class SkCanvas; 365 friend class SkCanvas;
361 friend struct DeviceCM; //for setMatrixClip 366 friend struct DeviceCM; //for setMatrixClip
362 friend class SkDraw; 367 friend class SkDraw;
363 friend class SkDrawIter; 368 friend class SkDrawIter;
364 friend class SkDeviceFilteredPaint; 369 friend class SkDeviceFilteredPaint;
365 friend class SkDeviceImageFilterProxy; 370 friend class SkDeviceImageFilterProxy;
366 friend class SkDeferredDevice; // for newSurface 371 friend class SkDeferredDevice; // for newSurface
(...skipping 23 matching lines...) Expand all
390 SkDeviceProperties* fLeakyProperties; // will always exist. 395 SkDeviceProperties* fLeakyProperties; // will always exist.
391 396
392 #ifdef SK_DEBUG 397 #ifdef SK_DEBUG
393 bool fAttachedToCanvas; 398 bool fAttachedToCanvas;
394 #endif 399 #endif
395 400
396 typedef SkRefCnt INHERITED; 401 typedef SkRefCnt INHERITED;
397 }; 402 };
398 403
399 #endif 404 #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