* of 'picture'. If optimization data is available (due to an earlier
* 'optimize' call) this entry point should make use of it and return true
* if all rendering has been done. If false is returned, SkCanvas will
- * perform its own rendering pass. It is acceptable for the backend
+ * perform its own rendering pass. It is acceptable for the backend
* to perform some device-specific warm up tasks and then let SkCanvas
* perform the main rendering loop (by return false from here).
*/
SK_DECLARE_INST_COUNT(SkPicture)
// AccelData provides a base class for device-specific acceleration
- // data. It is added to the picture via a call to a device's optimize
+ // data. It is added to the picture via a call to a device's optimize
// method.
class AccelData : public SkRefCnt {
public:
SkPicture(const SkPicture& src);
/** PRIVATE / EXPERIMENTAL -- do not call */
- void EXPERIMENTAL_addAccelData(const AccelData* data) {
- SkRefCnt_SafeAssign(fAccelData, data);
+ void EXPERIMENTAL_addAccelData(const AccelData* data) {
+ SkRefCnt_SafeAssign(fAccelData, data);
}
/** PRIVATE / EXPERIMENTAL -- do not call */
- const AccelData* EXPERIMENTAL_getAccelData(AccelData::Key key) const {
+ const AccelData* EXPERIMENTAL_getAccelData(AccelData::Key key) const {
if (NULL != fAccelData && fAccelData->getKey() == key) {
- return fAccelData;
+ return fAccelData;
}
return NULL;
}
if (!supported_for_raster_canvas(info)) {
return NULL;
}
-
+
SkBitmap bitmap;
if (!bitmap.installPixels(info, pixels, rowBytes)) {
return NULL;
}
-
+
// should this functionality be moved into allocPixels()?
if (!bitmap.info().isOpaque()) {
bitmap.eraseColor(0);
}
return SkNEW_ARGS(SkCanvas, (bitmap));
}
-
-