Added dependencies for SkPipe in SampleApp
Fixed SkGPipeWrite to reflect changes in SkDevice git-svn-id: http://skia.googlecode.com/svn/trunk@1633 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
5f802c18f2
commit
06b4da16fd
@ -10,6 +10,7 @@
|
||||
'include_dirs' : [
|
||||
'../src/core', # needed to get SkConcaveToTriangle, maybe this should be moved to include dir?
|
||||
'../gm', # SampleGM.cpp pulls gm.h
|
||||
'../include/pipe', # To pull in SkGPipe.h for pipe reader/writer
|
||||
],
|
||||
'sources': [
|
||||
# gm files needed for SampleGM.cpp
|
||||
@ -108,6 +109,10 @@
|
||||
'../samplecode/SampleVertices.cpp',
|
||||
'../samplecode/SampleXfermodes.cpp',
|
||||
'../samplecode/SampleXfermodesBlur.cpp',
|
||||
|
||||
# Dependecies for the pipe code in SampleApp
|
||||
'../src/pipe/SkGPipeRead.cpp',
|
||||
'../src/pipe/SkGPipeWrite.cpp',
|
||||
],
|
||||
'sources!': [
|
||||
'../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't compile
|
||||
|
@ -267,9 +267,10 @@ SkGPipeCanvas::SkGPipeCanvas(SkGPipeController* controller,
|
||||
|
||||
// we need a device to limit our clip
|
||||
// should the caller give us the bounds?
|
||||
// We don't allocate pixels for the bitmap
|
||||
SkBitmap bitmap;
|
||||
bitmap.setConfig(SkBitmap::kARGB_8888_Config, 32767, 32767);
|
||||
SkDevice* device = SkNEW_ARGS(SkDevice, (this, bitmap, false));
|
||||
SkDevice* device = SkNEW_ARGS(SkDevice, (bitmap));
|
||||
this->setDevice(device)->unref();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user