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

Unified Diff: src/image/SkImagePriv.h

Issue 2220603002: rename FoceCopyMode to SkCopyPixelMode (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: manual rebase Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/image/SkImage.cpp ('k') | src/image/SkImageShader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/image/SkImagePriv.h
diff --git a/src/image/SkImagePriv.h b/src/image/SkImagePriv.h
deleted file mode 100644
index 9cdcbb6f937681ff7aa178983e9722901f9d6de6..0000000000000000000000000000000000000000
--- a/src/image/SkImagePriv.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright 2012 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkImagePriv_DEFINED
-#define SkImagePriv_DEFINED
-
-#include "SkImage.h"
-#include "SkSurface.h"
-
-// Call this if you explicitly want to use/share this pixelRef in the image
-extern sk_sp<SkImage> SkMakeImageFromPixelRef(const SkImageInfo&, SkPixelRef*,
- const SkIPoint& pixelRefOrigin,
- size_t rowBytes);
-
-/**
- * Examines the bitmap to decide if it can share the existing pixelRef, or
- * if it needs to make a deep-copy of the pixels.
- *
- * The bitmap's pixelref will be shared if either the bitmap is marked as
- * immutable, or forceSharePixelRef is true. Shared pixel refs are also
- * locked when kLocked_SharedPixelRefMode is specified.
- *
- * Passing kLocked_SharedPixelRefMode allows the image's peekPixels() method
- * to succeed, but it will force any lazy decodes/generators to execute if
- * they exist on the pixelref.
- *
- * It is illegal to call this with a texture-backed bitmap.
- *
- * If the bitmap's colortype cannot be converted into a corresponding
- * SkImageInfo, or the bitmap's pixels cannot be accessed, this will return
- * nullptr.
- */
-enum ForceCopyMode {
- kNo_ForceCopyMode,
- kYes_ForceCopyMode, // must copy the pixels even if the bitmap is immutable
- kNever_ForceCopyMode, // don't ever copy, even if the bitmap is mutable
-};
-extern sk_sp<SkImage> SkMakeImageFromRasterBitmap(const SkBitmap&,
- ForceCopyMode = kNo_ForceCopyMode);
-
-// Given an image created from SkNewImageFromBitmap, return its pixelref. This
-// may be called to see if the surface and the image share the same pixelref,
-// in which case the surface may need to perform a copy-on-write.
-extern const SkPixelRef* SkBitmapImageGetPixelRef(const SkImage* rasterImage);
-
-// When a texture is shared by a surface and an image its budgeted status is that of the
-// surface. This function is used when the surface makes a new texture for itself in order
-// for the orphaned image to determine whether the original texture counts against the
-// budget or not.
-extern void SkTextureImageApplyBudgetedDecision(SkImage* textureImage);
-
-// Update the texture wrapped by an image created with NewTexture. This
-// is called when a surface and image share the same GrTexture and the
-// surface needs to perform a copy-on-write
-extern void SkTextureImageSetTexture(SkImage* image, GrTexture* texture);
-
-GrTexture* GrDeepCopyTexture(GrTexture* src, SkBudgeted);
-
-#endif
« no previous file with comments | « src/image/SkImage.cpp ('k') | src/image/SkImageShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698