Chromium Code Reviews| Index: Source/core/html/HTMLCanvasElement.h |
| diff --git a/Source/core/html/HTMLCanvasElement.h b/Source/core/html/HTMLCanvasElement.h |
| index feddebbe1f98272481b54b6ce5f78f9333edb9ea..c0e1f56bd9ecfb5a661d50dba3a2ccc11ef1662b 100644 |
| --- a/Source/core/html/HTMLCanvasElement.h |
| +++ b/Source/core/html/HTMLCanvasElement.h |
| @@ -119,9 +119,9 @@ public: |
| void ensureUnacceleratedImageBuffer(); |
| ImageBuffer* buffer() const; |
| - Image* copiedImage() const; |
| + enum SourceBuffer { Front, Back }; |
|
Ken Russell (switch to Gerrit)
2014/11/26 00:49:10
There are now three copies of this enum. Could you
dshwang
2014/11/26 13:37:29
Nice suggestion. I thought it's not pretty but I d
|
| + Image* copiedImage(SourceBuffer) const; |
| void clearCopiedImage(); |
| - PassRefPtrWillBeRawPtr<ImageData> getImageData() const; |
| SecurityOrigin* securityOrigin() const; |
| bool originClean() const { return m_originClean; } |
| @@ -187,7 +187,7 @@ private: |
| void updateExternallyAllocatedMemory() const; |
| - String toDataURLInternal(const String& mimeType, const double* quality, bool isSaving = false) const; |
| + String toDataURLInternal(const String& mimeType, const double* quality, SourceBuffer) const; |
| WillBeHeapHashSet<RawPtrWillBeWeakMember<CanvasObserver>> m_observers; |