OSDN Git Service

Fix build
authorJohn Reck <jreck@google.com>
Thu, 7 May 2015 20:50:55 +0000 (13:50 -0700)
committerJohn Reck <jreck@google.com>
Thu, 7 May 2015 20:50:55 +0000 (13:50 -0700)
Change-Id: I233f943041ce46b0d69e0e2f5e0dcda9aa9b7d4b

libs/hwui/DisplayListCanvas.h

index 7f8ae72..d997ef4 100644 (file)
@@ -350,7 +350,7 @@ private:
         // correctly, such as creating the bitmap from scratch, drawing with it, changing its
         // contents, and drawing again. The only fix would be to always copy it the first time,
         // which doesn't seem worth the extra cycles for this unlikely case.
-        const SkBitmap* localBitmap = new (alloc()) SkBitmap(bitmap);
+        SkBitmap* localBitmap = new (alloc()) SkBitmap(bitmap);
         alloc().autoDestroy(localBitmap);
         mDisplayListData->bitmapResources.push_back(localBitmap);
         return localBitmap;