X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Fskia%2Fsrc%2Fcore%2FSkDevice.cpp;h=364b106dd8feb023fd8223efdf6e838809a28778;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=c08ae26159312bdc61380ce8704f16b37363566f;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/skia/src/core/SkDevice.cpp b/src/third_party/skia/src/core/SkDevice.cpp index c08ae26..364b106 100644 --- a/src/third_party/skia/src/core/SkDevice.cpp +++ b/src/third_party/skia/src/core/SkDevice.cpp @@ -1,4 +1,3 @@ - /* * Copyright 2011 Google Inc. * @@ -18,6 +17,7 @@ #endif /////////////////////////////////////////////////////////////////////////////// + SkBaseDevice::SkBaseDevice() : fLeakyProperties(SkDeviceProperties::MakeDefault()) #ifdef SK_DEBUG @@ -65,6 +65,12 @@ SkMetaData& SkBaseDevice::getMetaData() { return *fMetaData; } +// TODO: should make this guy pure-virtual. +SkImageInfo SkBaseDevice::imageInfo() const { + return SkImageInfo::Make(this->width(), this->height(), + kUnknown_SkColorType, kIgnore_SkAlphaType); +} + const SkBitmap& SkBaseDevice::accessBitmap(bool changePixels) { const SkBitmap& bitmap = this->onAccessBitmap(); if (changePixels) { @@ -115,3 +121,7 @@ bool SkBaseDevice::readPixels(SkBitmap* bitmap, int x, int y, } return result; } + +SkSurface* SkBaseDevice::newSurface(const SkImageInfo&) { return NULL; } + +const void* SkBaseDevice::peekPixels(SkImageInfo*, size_t*) { return NULL; }