Fix windows build of tools.
Review URL: https://codereview.appspot.com/6494068 git-svn-id: http://skia.googlecode.com/svn/trunk@5374 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
11f869277c
commit
6bc8cf8f64
@ -335,7 +335,8 @@ void TiledPictureRenderer::drawTiles() {
|
||||
writer.endRecording();
|
||||
|
||||
// Create and start the threads.
|
||||
TileData* tileData[fTiles.count()];
|
||||
TileData** tileData = SkNEW_ARRAY(TileData*, fTiles.count());
|
||||
SkAutoTDeleteArray<TileData*> deleteTileData(tileData);
|
||||
for (int i = 0; i < fTiles.count(); i++) {
|
||||
tileData[i] = SkNEW_ARGS(TileData, (fTiles[i], &controller));
|
||||
if (!tileData[i]->fThread.start()) {
|
||||
@ -350,7 +351,8 @@ void TiledPictureRenderer::drawTiles() {
|
||||
SkPicture* clones = SkNEW_ARRAY(SkPicture, fTiles.count());
|
||||
SkAutoTDeleteArray<SkPicture> autodelete(clones);
|
||||
fPicture->clone(clones, fTiles.count());
|
||||
CloneData* cloneData[fTiles.count()];
|
||||
CloneData** cloneData = SkNEW_ARRAY(CloneData*, fTiles.count());
|
||||
SkAutoTDeleteArray<CloneData*> deleteCloneData(cloneData);
|
||||
for (int i = 0; i < fTiles.count(); i++) {
|
||||
cloneData[i] = SkNEW_ARGS(CloneData, (fTiles[i], &clones[i]));
|
||||
if (!cloneData[i]->fThread.start()) {
|
||||
|
Loading…
Reference in New Issue
Block a user