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

Unified Diff: third_party/WebKit/Source/platform/graphics/Image.cpp

Issue 2810423003: Schedule bitmap animation timers on the compositor task runner. (Closed)
Patch Set: fix up comment about a method changed by blink reformat Created 3 years, 8 months 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
Index: third_party/WebKit/Source/platform/graphics/Image.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Image.cpp b/third_party/WebKit/Source/platform/graphics/Image.cpp
index 232adc4285742d71c42c496e9e7a48d488ed4fdc..bb6b7ca7ced55ec6d5547fbcb473086d0f9979db 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Image.cpp
@@ -58,7 +58,7 @@ Image::~Image() {}
Image* Image::NullImage() {
DCHECK(IsMainThread());
- DEFINE_STATIC_REF(Image, null_image, (BitmapImage::Create()));
+ DEFINE_STATIC_REF(Image, null_image, (BitmapImage::CreateGlobal()));
return null_image;
}
@@ -67,7 +67,7 @@ PassRefPtr<Image> Image::LoadPlatformResource(const char* name) {
if (resource.IsEmpty())
return Image::NullImage();
- RefPtr<Image> image = BitmapImage::Create();
+ RefPtr<Image> image = BitmapImage::CreateGlobal();
image->SetData(resource, true);
return image.Release();
}

Powered by Google App Engine
This is Rietveld 408576698