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

Unified Diff: Source/core/html/HTMLCanvasElement.h

Issue 749653002: WebGL: clarify which Front or Back buffer is used by each API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address nits Created 6 years, 1 month 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: Source/core/html/HTMLCanvasElement.h
diff --git a/Source/core/html/HTMLCanvasElement.h b/Source/core/html/HTMLCanvasElement.h
index feddebbe1f98272481b54b6ce5f78f9333edb9ea..ba89f02317fb25cc216e7952615a43482c39e8fc 100644
--- a/Source/core/html/HTMLCanvasElement.h
+++ b/Source/core/html/HTMLCanvasElement.h
@@ -34,10 +34,10 @@
#include "platform/geometry/FloatRect.h"
#include "platform/geometry/IntSize.h"
#include "platform/graphics/GraphicsTypes.h"
+#include "platform/graphics/GraphicsTypes3D.h"
#include "platform/graphics/ImageBufferClient.h"
#include "platform/heap/Handle.h"
#include "public/platform/WebThread.h"
-#include "wtf/Forward.h"
#define CanvasDefaultInterpolationQuality InterpolationLow
@@ -119,9 +119,8 @@ public:
void ensureUnacceleratedImageBuffer();
ImageBuffer* buffer() const;
- Image* copiedImage() const;
+ Image* copiedImage(SourceDrawingBuffer) const;
void clearCopiedImage();
- PassRefPtrWillBeRawPtr<ImageData> getImageData() const;
SecurityOrigin* securityOrigin() const;
bool originClean() const { return m_originClean; }
@@ -187,7 +186,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, SourceDrawingBuffer) const;
WillBeHeapHashSet<RawPtrWillBeWeakMember<CanvasObserver>> m_observers;

Powered by Google App Engine
This is Rietveld 408576698