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

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

Issue 583773004: Revert of introduce Props to surface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 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/SkSurface.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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 * it just returns false and leaves result and offset unchanged. 281 * it just returns false and leaves result and offset unchanged.
282 */ 282 */
283 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, 283 virtual bool filterImage(const SkImageFilter*, const SkBitmap&,
284 const SkImageFilter::Context& ctx, 284 const SkImageFilter::Context& ctx,
285 SkBitmap* result, SkIPoint* offset) { 285 SkBitmap* result, SkIPoint* offset) {
286 return false; 286 return false;
287 } 287 }
288 288
289 protected: 289 protected:
290 // default impl returns NULL 290 // default impl returns NULL
291 virtual SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&); 291 virtual SkSurface* newSurface(const SkImageInfo&);
292 292
293 // default impl returns NULL 293 // default impl returns NULL
294 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes); 294 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes);
295 295
296 /** 296 /**
297 * The caller is responsible for "pre-clipping" the dst. The impl can assum e that the dst 297 * The caller is responsible for "pre-clipping" the dst. The impl can assum e that the dst
298 * image at the specified x,y offset will fit within the device's bounds. 298 * image at the specified x,y offset will fit within the device's bounds.
299 * 299 *
300 * This is explicitly asserted in readPixels(), the public way to call this . 300 * This is explicitly asserted in readPixels(), the public way to call this .
301 */ 301 */
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 * of 'picture'. If optimization data is available (due to an earlier 336 * of 'picture'. If optimization data is available (due to an earlier
337 * 'optimize' call) this entry point should make use of it and return true 337 * 'optimize' call) this entry point should make use of it and return true
338 * if all rendering has been done. If false is returned, SkCanvas will 338 * if all rendering has been done. If false is returned, SkCanvas will
339 * perform its own rendering pass. It is acceptable for the backend 339 * perform its own rendering pass. It is acceptable for the backend
340 * to perform some device-specific warm up tasks and then let SkCanvas 340 * to perform some device-specific warm up tasks and then let SkCanvas
341 * perform the main rendering loop (by return false from here). 341 * perform the main rendering loop (by return false from here).
342 */ 342 */
343 virtual bool EXPERIMENTAL_drawPicture(SkCanvas*, const SkPicture*, const SkM atrix*, 343 virtual bool EXPERIMENTAL_drawPicture(SkCanvas*, const SkPicture*, const SkM atrix*,
344 const SkPaint*); 344 const SkPaint*);
345 345
346 void setPixelGeometry(SkPixelGeometry geo);
347
348 private: 346 private:
349 friend class SkCanvas; 347 friend class SkCanvas;
350 friend struct DeviceCM; //for setMatrixClip 348 friend struct DeviceCM; //for setMatrixClip
351 friend class SkDraw; 349 friend class SkDraw;
352 friend class SkDrawIter; 350 friend class SkDrawIter;
353 friend class SkDeviceFilteredPaint; 351 friend class SkDeviceFilteredPaint;
354 friend class SkDeviceImageFilterProxy; 352 friend class SkDeviceImageFilterProxy;
355 friend class SkDeferredDevice; // for newSurface 353 friend class SkDeferredDevice; // for newSurface
356 354
357 friend class SkSurface_Raster; 355 friend class SkSurface_Raster;
(...skipping 26 matching lines...) Expand all
384 SkDeviceProperties* fLeakyProperties; // will always exist. 382 SkDeviceProperties* fLeakyProperties; // will always exist.
385 383
386 #ifdef SK_DEBUG 384 #ifdef SK_DEBUG
387 bool fAttachedToCanvas; 385 bool fAttachedToCanvas;
388 #endif 386 #endif
389 387
390 typedef SkRefCnt INHERITED; 388 typedef SkRefCnt INHERITED;
391 }; 389 };
392 390
393 #endif 391 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkSurface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698