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

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

Issue 1950523002: Remove GrLayerHoister (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Forgot to remove some files Created 4 years, 5 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 | « gyp/gpu.gypi ('k') | include/core/SkPictureRecorder.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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 /** 303 /**
304 * The caller is responsible for "pre-clipping" the src. The impl can assum e that the src 304 * The caller is responsible for "pre-clipping" the src. The impl can assum e that the src
305 * image at the specified x,y offset will fit within the device's bounds. 305 * image at the specified x,y offset will fit within the device's bounds.
306 * 306 *
307 * This is explicitly asserted in writePixelsDirect(), the public way to ca ll this. 307 * This is explicitly asserted in writePixelsDirect(), the public way to ca ll this.
308 */ 308 */
309 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int x, i nt y); 309 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int x, i nt y);
310 310
311 virtual bool onAccessPixels(SkPixmap*) { return false; } 311 virtual bool onAccessPixels(SkPixmap*) { return false; }
312 312
313 /**
314 * PRIVATE / EXPERIMENTAL -- do not call
315 * This entry point gives the backend an opportunity to take over the rende ring
316 * of 'picture'. If optimization data is available (due to an earlier
317 * 'optimize' call) this entry point should make use of it and return true
318 * if all rendering has been done. If false is returned, SkCanvas will
319 * perform its own rendering pass. It is acceptable for the backend
320 * to perform some device-specific warm up tasks and then let SkCanvas
321 * perform the main rendering loop (by return false from here).
322 */
323 virtual bool EXPERIMENTAL_drawPicture(SkCanvas*, const SkPicture*, const SkM atrix*,
324 const SkPaint*);
325
326 struct CreateInfo { 313 struct CreateInfo {
327 static SkPixelGeometry AdjustGeometry(const SkImageInfo&, TileUsage, SkP ixelGeometry, 314 static SkPixelGeometry AdjustGeometry(const SkImageInfo&, TileUsage, SkP ixelGeometry,
328 bool preserveLCDText); 315 bool preserveLCDText);
329 316
330 // The constructor may change the pixel geometry based on other paramete rs. 317 // The constructor may change the pixel geometry based on other paramete rs.
331 CreateInfo(const SkImageInfo& info, 318 CreateInfo(const SkImageInfo& info,
332 TileUsage tileUsage, 319 TileUsage tileUsage,
333 SkPixelGeometry geo) 320 SkPixelGeometry geo)
334 : fInfo(info) 321 : fInfo(info)
335 , fTileUsage(tileUsage) 322 , fTileUsage(tileUsage)
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 SkSurfaceProps fSurfaceProps; 394 SkSurfaceProps fSurfaceProps;
408 395
409 #ifdef SK_DEBUG 396 #ifdef SK_DEBUG
410 bool fAttachedToCanvas; 397 bool fAttachedToCanvas;
411 #endif 398 #endif
412 399
413 typedef SkRefCnt INHERITED; 400 typedef SkRefCnt INHERITED;
414 }; 401 };
415 402
416 #endif 403 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | include/core/SkPictureRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698