am 19256340: am 22c66639: Merge "Fixes for 64bit in libhwui"

* commit '192563407964926537d688d4098054c3834341c0':
  Fixes for 64bit in libhwui
This commit is contained in:
Narayan Kamath
2014-02-21 16:47:38 +00:00
committed by Android Git Automerger
2 changed files with 2 additions and 2 deletions

View File

@ -1444,7 +1444,7 @@ public:
DeferredDisplayList::kOpBatch_Text : DeferredDisplayList::kOpBatch_Text :
DeferredDisplayList::kOpBatch_ColorText; 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 // don't merge decorated text - the decorations won't draw in order
bool noDecorations = !(mPaint->getFlags() & (SkPaint::kUnderlineText_Flag | bool noDecorations = !(mPaint->getFlags() & (SkPaint::kUnderlineText_Flag |

View File

@ -151,7 +151,7 @@ void GpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t hei
mCaches.bindPixelBuffer(mBuffer); mCaches.bindPixelBuffer(mBuffer);
unmap(); unmap();
glTexSubImage2D(GL_TEXTURE_2D, 0, x, y, width, height, mFormat, glTexSubImage2D(GL_TEXTURE_2D, 0, x, y, width, height, mFormat,
GL_UNSIGNED_BYTE, (void*) offset); GL_UNSIGNED_BYTE, reinterpret_cast<void*>(offset));
} }
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////