summaryrefslogtreecommitdiff
path: root/cogl/cogl-texture-private.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2012-11-08 20:33:00 +0000
committerRobert Bragg <robert@linux.intel.com>2013-01-22 17:48:07 +0000
commit07d47eadd370520594e449adeb2295d0f03cac58 (patch)
treedcec4981664d99e7615284eb9de93a3caa2c9452 /cogl/cogl-texture-private.h
parente439bdd12ff82a3d8d4107db663d5ada58f67fe8 (diff)
downloadcogl-07d47eadd370520594e449adeb2295d0f03cac58.tar.gz
texture: split out high-level texture constructors
This splits out the very high level texture constructors that may internally construct one of several types of lower level texture due to various constraints. This also updates the prototypes for these constructors to take an explicit context pointer and return a CoglError consistent with other texture constructors. Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit a1cabfae6ad50c51006c608cdde7d631b7832e71)
Diffstat (limited to 'cogl/cogl-texture-private.h')
-rw-r--r--cogl/cogl-texture-private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cogl/cogl-texture-private.h b/cogl/cogl-texture-private.h
index 51fdf0bd..c862ecd1 100644
--- a/cogl/cogl-texture-private.h
+++ b/cogl/cogl-texture-private.h
@@ -312,4 +312,8 @@ _cogl_texture_set_region_from_bitmap (CoglTexture *texture,
CoglBitmap *bmp,
CoglError **error);
+CoglBool
+_cogl_texture_needs_premult_conversion (CoglPixelFormat src_format,
+ CoglPixelFormat dst_format);
+
#endif /* __COGL_TEXTURE_PRIVATE_H */