[Swfdec-commits] Branch '0.8' - 5 commits - doc/swfdec-docs.sgml README swfdec/swfdec_net_stream.c swfdec/swfdec_renderer.c swfdec/swfdec_resource.c
Benjamin Otte
company at kemper.freedesktop.org
Wed Sep 24 06:46:45 PDT 2008
README | 2 +-
doc/swfdec-docs.sgml | 1 +
swfdec/swfdec_net_stream.c | 8 +++++---
swfdec/swfdec_renderer.c | 23 +++++++++++++----------
swfdec/swfdec_resource.c | 4 ++--
5 files changed, 22 insertions(+), 16 deletions(-)
New commits:
commit d22d7510281b93e094afa621997ec7ffed35b247
Author: Benjamin Otte <otte at gnome.org>
Date: Sat Sep 20 15:03:21 2008 +0200
add symbol index to documentation
diff --git a/doc/swfdec-docs.sgml b/doc/swfdec-docs.sgml
index fdffb68..4b5de7e 100644
--- a/doc/swfdec-docs.sgml
+++ b/doc/swfdec-docs.sgml
@@ -42,4 +42,5 @@
<xi:include href="xml/SwfdecAsFrame.xml"/>
<xi:include href="xml/SwfdecAsDebugger.xml"/>
</chapter>
+ <index />
</book>
commit ae1369c29db95c6d60848116c4c4ebc062a33053
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Wed Sep 17 13:05:12 2008 +0300
Don't require policy file for NetStream
It's only required if checkPolicyFile property is true. Which is only needed to
allow BitmapData.draw for the NetStream object
diff --git a/swfdec/swfdec_net_stream.c b/swfdec/swfdec_net_stream.c
index 77bbc21..601576d 100644
--- a/swfdec/swfdec_net_stream.c
+++ b/swfdec/swfdec_net_stream.c
@@ -586,12 +586,14 @@ swfdec_net_stream_load (SwfdecPlayer *player, gboolean allowed, gpointer streamp
stream->requested_url = NULL;
}
+// When checkPolicyFile is true the YES values in last column must be changed
+// to POLICY
static const SwfdecAccessMatrix swfdec_net_stream_matrix = {
{ SWFDEC_ACCESS_NO, SWFDEC_ACCESS_NO, SWFDEC_ACCESS_NO },
- { SWFDEC_ACCESS_NO, SWFDEC_ACCESS_YES, SWFDEC_ACCESS_POLICY },
+ { SWFDEC_ACCESS_NO, SWFDEC_ACCESS_YES, SWFDEC_ACCESS_YES },
{ SWFDEC_ACCESS_YES, SWFDEC_ACCESS_NO, SWFDEC_ACCESS_NO },
- { SWFDEC_ACCESS_NO, SWFDEC_ACCESS_NO, SWFDEC_ACCESS_POLICY },
- { SWFDEC_ACCESS_YES, SWFDEC_ACCESS_NO, SWFDEC_ACCESS_POLICY }
+ { SWFDEC_ACCESS_NO, SWFDEC_ACCESS_NO, SWFDEC_ACCESS_YES },
+ { SWFDEC_ACCESS_YES, SWFDEC_ACCESS_NO, SWFDEC_ACCESS_YES }
};
void
commit 8527ea61df0bb41c8eda0dd094824274e0216f00
Author: Benjamin Otte <otte at gnome.org>
Date: Mon Sep 15 19:13:03 2008 +0200
SWF files seem to be loaded without requiring a policy file
diff --git a/swfdec/swfdec_resource.c b/swfdec/swfdec_resource.c
index 5fb9f01..67a5c9c 100644
--- a/swfdec/swfdec_resource.c
+++ b/swfdec/swfdec_resource.c
@@ -592,8 +592,8 @@ static const SwfdecAccessMatrix swfdec_resource_matrix = {
{ SWFDEC_ACCESS_NO, SWFDEC_ACCESS_NO, SWFDEC_ACCESS_NO },
{ SWFDEC_ACCESS_NO, SWFDEC_ACCESS_YES, SWFDEC_ACCESS_YES },
{ SWFDEC_ACCESS_YES, SWFDEC_ACCESS_NO, SWFDEC_ACCESS_NO },
- { SWFDEC_ACCESS_YES, SWFDEC_ACCESS_NO, SWFDEC_ACCESS_POLICY },
- { SWFDEC_ACCESS_YES, SWFDEC_ACCESS_NO, SWFDEC_ACCESS_POLICY }
+ { SWFDEC_ACCESS_YES, SWFDEC_ACCESS_NO, SWFDEC_ACCESS_YES },
+ { SWFDEC_ACCESS_YES, SWFDEC_ACCESS_NO, SWFDEC_ACCESS_YES }
};
static void
commit baa777e37a1d2fa71046cd7cc455b03baf9c1bb2
Author: Benjamin Otte <otte at gnome.org>
Date: Sun Sep 14 20:20:58 2008 +0200
improve documentation for SwfdecRenderer
It seems to be unclear that SwfdecRenderer objects should be kept around.
diff --git a/swfdec/swfdec_renderer.c b/swfdec/swfdec_renderer.c
index 7e4495c..259f28a 100644
--- a/swfdec/swfdec_renderer.c
+++ b/swfdec/swfdec_renderer.c
@@ -42,18 +42,21 @@ struct _SwfdecRendererPrivate {
* The #SwfdecRenderer object is used internally to improve rendering done by
* Swfdec.
*
- * The first thing #SwfdecRenderer does is provide a way to cache data relevant
- * to rendering.
+ * The first thing a #SwfdecRenderer does is provide a way to cache data relevant
+ * to rendering. This means it will cache surfaces that are expensive to create
+ * (like decoded JPEG images) in a format most suitable to quick rendering.
+ * Therefore, it's a good idea to keep renderers around as long as any drawing
+ * to the attached surface happens.
*
- * The second thing it does is provide access to the surface that is used for
- * rendering, even when not in the process of rendering. This is relevant for
- * font backends, as different surfaces provide different native fonts. See
- * swfdec_player_set_default_backend() for details about this.
+ * The second thing a #SwfdecRenderer does is provide access to the surface
+ * that is used for rendering, even when not in the process of rendering. This
+ * is relevant for font backends, as different surfaces provide different
+ * native fonts. See swfdec_player_set_default_backend() for details about this.
*
- * The third thing it does is provide a list of virtual functions for critical
- * operations that you can optimize using subclasses to provide faster
- * implementations. Note that a working default implementation is provided, so
- * you only need to override the functions you care about.
+ * The third thing #SwfdecRenderer does is provide a list of virtual functions
+ * for critical operations that you can optimize using subclasses to provide
+ * faster implementations. Note that a working default implementation is
+ * provided, so you only need to override the functions you care about.
* See #SwfdecRendererClass for details about these functions.
*/
commit 1cad56ce3fe0a6c7988285b9a595ea6a4710c6a1
Author: Benjamin Otte <otte at gnome.org>
Date: Sun Sep 14 19:52:55 2008 +0200
We require glib 2.16
diff --git a/README b/README
index f9e0632..09955b8 100644
--- a/README
+++ b/README
@@ -64,7 +64,7 @@ Limitations:
Dependencies:
cairo (>= 1.2.0 - >= 1.8.0 recommended) with png support enabled
- glib (>= 2.14.0)
+ glib (>= 2.16.0)
liboil (>= 0.3.6)
Pangocairo (>= 1.16.0) - this is provided by Pango
zlib (>= 1.1.4)
More information about the Swfdec-commits
mailing list