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

Side by Side Diff: src/image/SkImagePriv.h

Issue 610003002: Override SkCanvas::drawImage() in SkRecorder. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase master Created 6 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
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 SkImagePriv_DEFINED 8 #ifndef SkImagePriv_DEFINED
9 #define SkImagePriv_DEFINED 9 #define SkImagePriv_DEFINED
10 10
(...skipping 15 matching lines...) Expand all
26 */ 26 */
27 extern SkImage* SkNewImageFromBitmap(const SkBitmap&, bool canSharePixelRef); 27 extern SkImage* SkNewImageFromBitmap(const SkBitmap&, bool canSharePixelRef);
28 28
29 static inline size_t SkImageMinRowBytes(const SkImageInfo& info) { 29 static inline size_t SkImageMinRowBytes(const SkImageInfo& info) {
30 return SkAlign4(info.minRowBytes()); 30 return SkAlign4(info.minRowBytes());
31 } 31 }
32 32
33 // Given an image created from SkNewImageFromBitmap, return its pixelref. This 33 // Given an image created from SkNewImageFromBitmap, return its pixelref. This
34 // may be called to see if the surface and the image share the same pixelref, 34 // may be called to see if the surface and the image share the same pixelref,
35 // in which case the surface may need to perform a copy-on-write. 35 // in which case the surface may need to perform a copy-on-write.
36 extern SkPixelRef* SkBitmapImageGetPixelRef(SkImage* rasterImage); 36 extern const SkPixelRef* SkBitmapImageGetPixelRef(const SkImage* rasterImage);
37 37
38 // Given an image created with NewTexture, return its GrTexture. This 38 // Given an image created with NewTexture, return its GrTexture. This
39 // may be called to see if the surface and the image share the same GrTexture, 39 // may be called to see if the surface and the image share the same GrTexture,
40 // in which case the surface may need to perform a copy-on-write. 40 // in which case the surface may need to perform a copy-on-write.
41 extern GrTexture* SkTextureImageGetTexture(SkImage* textureImage); 41 extern GrTexture* SkTextureImageGetTexture(SkImage* textureImage);
42 42
43 // Update the texture wrapped by an image created with NewTexture. This 43 // Update the texture wrapped by an image created with NewTexture. This
44 // is called when a surface and image share the same GrTexture and the 44 // is called when a surface and image share the same GrTexture and the
45 // surface needs to perform a copy-on-write 45 // surface needs to perform a copy-on-write
46 extern void SkTextureImageSetTexture(SkImage* image, GrTexture* texture); 46 extern void SkTextureImageSetTexture(SkImage* image, GrTexture* texture);
47 47
48 #endif 48 #endif
OLDNEW
« no previous file with comments | « src/core/SkRecords.h ('k') | src/image/SkImage_Raster.cpp » ('j') | tests/RecordDrawTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698