summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/CanvasSurface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/dom/CanvasSurface.cpp')
-rw-r--r--WebCore/dom/CanvasSurface.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebCore/dom/CanvasSurface.cpp b/WebCore/dom/CanvasSurface.cpp
index 424f913..ea29113 100644
--- a/WebCore/dom/CanvasSurface.cpp
+++ b/WebCore/dom/CanvasSurface.cpp
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
+ * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -77,7 +78,7 @@ void CanvasSurface::setSurfaceSize(const IntSize& size)
m_imageBuffer.clear();
}
-String CanvasSurface::toDataURL(const String& mimeType, ExceptionCode& ec)
+String CanvasSurface::toDataURL(const String& mimeType, double quality, ExceptionCode& ec)
{
if (!m_originClean) {
ec = SECURITY_ERR;
@@ -93,7 +94,7 @@ String CanvasSurface::toDataURL(const String& mimeType, ExceptionCode& ec)
if (mimeType.isNull() || !MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(lowercaseMimeType))
return buffer()->toDataURL("image/png");
- return buffer()->toDataURL(lowercaseMimeType);
+ return buffer()->toDataURL(lowercaseMimeType, quality);
}
void CanvasSurface::willDraw(const FloatRect&)