summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-07-29 15:41:19 -0700
committerDianne Hackborn <hackbod@google.com>2009-07-29 19:44:01 -0700
commit3945ae5065ec62ed267e1aaf4cfc160c5eb6a79e (patch)
tree09e0a70b87f84d145fb74c607455695488eaf1ac /include
parentd8475b75e6fc33416b892c44136ee9c16f79ed81 (diff)
downloadframeworks_native-3945ae5065ec62ed267e1aaf4cfc160c5eb6a79e.zip
frameworks_native-3945ae5065ec62ed267e1aaf4cfc160c5eb6a79e.tar.gz
frameworks_native-3945ae5065ec62ed267e1aaf4cfc160c5eb6a79e.tar.bz2
Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA
It turns out we were not returning the density for anything retrieved from a TypedArray... which basically means any bitmap references from a layout or style...!!! This is now fixed. Also fiddle with the density compatibility mode to turn on smoothing in certain situations, helping the look of things when they need to scale and we couldn't do the scaling at load time.
Diffstat (limited to 'include')
-rw-r--r--include/utils/ResourceTypes.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/utils/ResourceTypes.h b/include/utils/ResourceTypes.h
index edd0cae..e524e2a 100644
--- a/include/utils/ResourceTypes.h
+++ b/include/utils/ResourceTypes.h
@@ -1655,7 +1655,8 @@ public:
ssize_t resolveReference(Res_value* inOutValue,
ssize_t blockIndex,
uint32_t* outLastRef = NULL,
- uint32_t* inoutTypeSpecFlags = NULL) const;
+ uint32_t* inoutTypeSpecFlags = NULL,
+ ResTable_config* outConfig = NULL) const;
enum {
TMP_BUFFER_SIZE = 16
@@ -1729,7 +1730,8 @@ public:
*/
ssize_t resolveAttributeReference(Res_value* inOutValue,
ssize_t blockIndex, uint32_t* outLastRef = NULL,
- uint32_t* inoutTypeSpecFlags = NULL) const;
+ uint32_t* inoutTypeSpecFlags = NULL,
+ ResTable_config* inoutConfig = NULL) const;
void dumpToLog() const;