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

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

Issue 1201983006: Clean up usage of SkSurfaceProps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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 | « include/core/SkCanvas.h ('k') | include/core/SkImageFilter.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 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 * a device that it knows how to draw, and that it knows how to identify if it is not of the 352 * a device that it knows how to draw, and that it knows how to identify if it is not of the
353 * same subclass (since drawDevice is passed a SkBaseDevice*). If the subcl ass cannot fulfill 353 * same subclass (since drawDevice is passed a SkBaseDevice*). If the subcl ass cannot fulfill
354 * that contract (e.g. PDF cannot support some settings on the paint) it sh ould return NULL, 354 * that contract (e.g. PDF cannot support some settings on the paint) it sh ould return NULL,
355 * and the caller may then decide to explicitly create a bitmapdevice, know ing that later 355 * and the caller may then decide to explicitly create a bitmapdevice, know ing that later
356 * it could not call drawDevice with it (but it could call drawSprite or dr awBitmap). 356 * it could not call drawDevice with it (but it could call drawSprite or dr awBitmap).
357 */ 357 */
358 virtual SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) { 358 virtual SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) {
359 return NULL; 359 return NULL;
360 } 360 }
361 361
362 virtual void initForRootLayer(SkPixelGeometry geo);
363
364 private: 362 private:
365 friend class SkCanvas; 363 friend class SkCanvas;
366 friend struct DeviceCM; //for setMatrixClip 364 friend struct DeviceCM; //for setMatrixClip
367 friend class SkDraw; 365 friend class SkDraw;
368 friend class SkDrawIter; 366 friend class SkDrawIter;
369 friend class SkDeviceFilteredPaint; 367 friend class SkDeviceFilteredPaint;
370 friend class SkImageFilter::Proxy; 368 friend class SkImageFilter::Proxy;
371 friend class SkDeferredDevice; // for newSurface 369 friend class SkDeferredDevice; // for newSurface
372 friend class SkNoPixelsBitmapDevice; 370 friend class SkNoPixelsBitmapDevice;
373 371
(...skipping 21 matching lines...) Expand all
395 SkSurfaceProps fSurfaceProps; 393 SkSurfaceProps fSurfaceProps;
396 394
397 #ifdef SK_DEBUG 395 #ifdef SK_DEBUG
398 bool fAttachedToCanvas; 396 bool fAttachedToCanvas;
399 #endif 397 #endif
400 398
401 typedef SkRefCnt INHERITED; 399 typedef SkRefCnt INHERITED;
402 }; 400 };
403 401
404 #endif 402 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698