Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
index e04ea2b304f96f0bc3e3c80e013ff43918bbac47..831ee6b5e46663aced2ac952526881cfb5042a0f 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp |
@@ -561,11 +561,13 @@ void HTMLCanvasElement::toBlob(FileCallback* callback, const String& mimeType, c |
RefPtr<DOMUint8ClampedArray> imageDataRef(imageData->data()); |
RefPtr<CanvasAsyncBlobCreator> asyncCreatorRef = CanvasAsyncBlobCreator::create(imageDataRef.release(), encodingMimeType, imageData->size(), callback); |
- if (Platform::current()->isThreadedCompositingEnabled() && (encodingMimeType == DefaultMimeType)) { |
- asyncCreatorRef->scheduleAsyncBlobCreation(true); |
- } else { |
- asyncCreatorRef->scheduleAsyncBlobCreation(false, quality); |
- } |
+ |
+// TODO(xlai): After Intent-to-Ship is approved, remove idle-periods version of implementation completely |
Justin Novosad
2015/12/01 19:38:02
Create a crbug about this so we don't forget.
|
+// if (Platform::current()->isThreadedCompositingEnabled() && (encodingMimeType == DefaultMimeType)) { |
+ // asyncCreatorRef->scheduleAsyncBlobCreation(true); |
+// } else { |
Justin Novosad
2015/12/01 19:38:02
Don't commit commented-out code
|
+ asyncCreatorRef->scheduleAsyncBlobCreation(false, quality); |
+// } |
} |
SecurityOrigin* HTMLCanvasElement::securityOrigin() const |