Fix to get r4511 compiling in Debug
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 10 Jul 2012 17:41:27 +0000 (17:41 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 10 Jul 2012 17:41:27 +0000 (17:41 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@4512 2bbb7eff-a529-9590-31e7-b0007b416f81

src/animator/SkScriptTokenizer.cpp

index 1be74272757c284b0485985847a97010eb681d67..90a50b66665f518d97661ccd9beb4e48fe48f708 100644 (file)
@@ -747,7 +747,7 @@ scalarCommon:
         addToken(kEnd);
         SkAutoDataUnref data(fStream.copyToData());
 #ifdef SK_DEBUG
-        decompile(data.bytes(), data.size());
+        decompile(data->bytes(), data->size());
 #endif
         SkScriptRuntime runtime(fCallBackArray);
         runtime.executeTokens((unsigned char*) data->bytes());
@@ -1155,7 +1155,7 @@ bool SkScriptEngine2::processOp() {
         addToken(kEnd);
         SkAutoDataUnref data(fStream.copyToData());
 #ifdef SK_DEBUG        
-        decompile(data.bytes(), data.size());
+        decompile(data->bytes(), data->size());
 #endif
         SkScriptRuntime runtime(fCallBackArray);
         runtime.executeTokens((unsigned char*)data->bytes());