summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-03-08 01:51:21 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-08 01:51:21 +0000
commit126fbb6ec902a135173aabbddedf19a7717ea768 (patch)
tree747058595b3e23c1d202f32efc9deceba5fbf101 /libs
parentb2235d5db74e26d6f3695eac672096d2cf430ade (diff)
parent192563407964926537d688d4098054c3834341c0 (diff)
downloadframeworks_base-126fbb6ec902a135173aabbddedf19a7717ea768.zip
frameworks_base-126fbb6ec902a135173aabbddedf19a7717ea768.tar.gz
frameworks_base-126fbb6ec902a135173aabbddedf19a7717ea768.tar.bz2
am 19256340: am 22c66639: Merge "Fixes for 64bit in libhwui"
* commit '192563407964926537d688d4098054c3834341c0': Fixes for 64bit in libhwui
Diffstat (limited to 'libs')
-rw-r--r--libs/hwui/DisplayListOp.h2
-rw-r--r--libs/hwui/PixelBuffer.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/DisplayListOp.h b/libs/hwui/DisplayListOp.h
index 326805a..842e028 100644
--- a/libs/hwui/DisplayListOp.h
+++ b/libs/hwui/DisplayListOp.h
@@ -1444,7 +1444,7 @@ public:
DeferredDisplayList::kOpBatch_Text :
DeferredDisplayList::kOpBatch_ColorText;
- deferInfo.mergeId = (mergeid_t)mPaint->getColor();
+ deferInfo.mergeId = reinterpret_cast<mergeid_t>(mPaint->getColor());
// don't merge decorated text - the decorations won't draw in order
bool noDecorations = !(mPaint->getFlags() & (SkPaint::kUnderlineText_Flag |
diff --git a/libs/hwui/PixelBuffer.cpp b/libs/hwui/PixelBuffer.cpp
index 36e89c6..5b642b9 100644
--- a/libs/hwui/PixelBuffer.cpp
+++ b/libs/hwui/PixelBuffer.cpp
@@ -151,7 +151,7 @@ void GpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t hei
mCaches.bindPixelBuffer(mBuffer);
unmap();
glTexSubImage2D(GL_TEXTURE_2D, 0, x, y, width, height, mFormat,
- GL_UNSIGNED_BYTE, (void*) offset);
+ GL_UNSIGNED_BYTE, reinterpret_cast<void*>(offset));
}
///////////////////////////////////////////////////////////////////////////////