Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(747)

Unified Diff: sky/engine/platform/graphics/Image.cpp

Issue 776743002: Make v8 inspector not crash (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/platform/graphics/Image.h ('k') | sky/engine/public/platform/Platform.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/graphics/Image.cpp
diff --git a/sky/engine/platform/graphics/Image.cpp b/sky/engine/platform/graphics/Image.cpp
index ef3150ce8bc5dc85a99034cc6079b39d76483942..baf369b047f8dee3aded5fd1cf2e1bca71e8605c 100644
--- a/sky/engine/platform/graphics/Image.cpp
+++ b/sky/engine/platform/graphics/Image.cpp
@@ -62,17 +62,6 @@ Image* Image::nullImage()
return nullImage;
}
-PassRefPtr<Image> Image::loadPlatformResource(const char *name)
-{
- const WebData& resource = Platform::current()->loadResource(name);
- if (resource.isEmpty())
- return Image::nullImage();
-
- RefPtr<Image> image = BitmapImage::create();
- image->setData(resource, true);
- return image.release();
-}
-
bool Image::setData(PassRefPtr<SharedBuffer> data, bool allDataReceived)
{
m_encodedImageData = data;
« no previous file with comments | « sky/engine/platform/graphics/Image.h ('k') | sky/engine/public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698