[Laszlo-dev] For Review: Change 20080430-maxcarlson-e Summary: Add 'cachebitmap' attribute to view
Max Carlson
max at openlaszlo.org
Wed Apr 30 23:55:49 PDT 2008
Change 20080430-maxcarlson-e by maxcarlson at Roboto on 2008-04-30
22:51:46 PDT
in /Users/maxcarlson/openlaszlo/trunk-clean
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Add 'cachebitmap' attribute to view
New Features:
Bugs Fixed: LPP-5904 - Add bitmap caching API
Technical Reviewer: promanik
QA Reviewer: hminsky
Doc Reviewer: (pending)
Documentation:
Release Notes: Setting the cachebitmap attribute to true will tunr on
bitmap caching for views. Note that text defaults to
cachebitmap='true'. This currently works only in Flash.
Details: lfc.lzx - Add setter method and attribute name.
swf/LzTextSprite.as - Default cachebitmap to true instead of setting
directly.
swf/LzSprite.as - Set bitmapcaching capability to true. Turn off
bitmap caching for clipped views, and warn in $debug mode. Add
setBitmapCache() and getContext() implementations.
dhtml/LzSprite.js - Set bitmapcaching capability to false. Add
getContext() placeholder method.
swf9/LzSprite.as - Set bitmapcaching capability to true. Add
setBitmapCache() and getContext() implementations. Update getMCRef()
to return the proper reference.
LaszloView.lzs - Add cachebitmap class attribute and setter.
drawview.lzx - Use inherited cachebitmap property. Default
cachebitmap to true. Use sprite.getContext() API to get graphics
context. Rely on sprite warnings when clipping is on and cachebitmap
is true.
Tests: /test/drawing/drawing.lzx runs as it did before in swf 7,8,9
and dhtml.
Files:
M WEB-INF/lps/schema/lfc.lzx
M WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as
M WEB-INF/lps/lfc/kernel/swf/LzSprite.as
M WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
M WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
M WEB-INF/lps/lfc/views/LaszloView.lzs
M lps/components/extensions/drawview.lzx
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080430-maxcarlson-e.tar
More information about the Laszlo-dev
mailing list