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

Unified Diff: include/core/SkAlpha.h

Issue 71813002: move SkImageInfo into its own header (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month 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 | « gyp/core.gypi ('k') | include/core/SkBitmap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkAlpha.h
diff --git a/include/core/SkAlpha.h b/include/core/SkAlpha.h
deleted file mode 100644
index 74ea687f96095ba79537f3b66c79db726615c23e..0000000000000000000000000000000000000000
--- a/include/core/SkAlpha.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright 2013 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkAlpha_DEFINED
-#define SkAlpha_DEFINED
-
-#include "SkTypes.h"
-
-/**
- * Describes how to interpret the alpha compoent of a pixel.
- */
-enum SkAlphaType {
- /**
- * All pixels should be treated as opaque, regardless of the value stored
- * in their alpha field. Used for legacy images that wrote 0 or garbarge
- * in their alpha field, but intended the RGB to be treated as opaque.
- */
- kIgnore_SkAlphaType,
-
- /**
- * All pixels are stored as opaque. This differs slightly from kIgnore in
- * that kOpaque has correct "opaque" values stored in the pixels, while
- * kIgnore may not, but in both cases the caller should treat the pixels
- * as opaque.
- */
- kOpaque_SkAlphaType,
-
- /**
- * All pixels have their alpha premultiplied in their color components.
- * This is the natural format for the rendering target pixels.
- */
- kPremul_SkAlphaType,
-
- /**
- * All pixels have their color components stored without any regard to the
- * alpha. e.g. this is the default configuration for PNG images.
- *
- * This alpha-type is ONLY supported for input images. Rendering cannot
- * generate this on output.
- */
- kUnpremul_SkAlphaType,
-
- kLastEnum_SkAlphaType = kUnpremul_SkAlphaType
-};
-
-static inline bool SkAlphaTypeIsOpaque(SkAlphaType at) {
- return (unsigned)at <= kOpaque_SkAlphaType;
-}
-#endif
« no previous file with comments | « gyp/core.gypi ('k') | include/core/SkBitmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698