summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Kling <andreas.kling@nokia.com>2011-06-08 12:45:38 +0200
committerAndreas Kling <andreas.kling@nokia.com>2011-06-08 12:46:27 +0200
commita7b134ae44bc03fc0a4427d750b32d50625a37ce (patch)
tree83230674f08a0c61307dd28469d83632f892acf9
parent8a396031fae6a3c96f2bde73643a8a69167cb3b4 (diff)
Make Float32Array and Int16Array build on RVCT 2.x.
Partial merge of <http://trac.webkit.org/changeset/88336>.
-rw-r--r--src/3rdparty/webkit/Source/WebCore/html/canvas/Float32Array.h3
-rw-r--r--src/3rdparty/webkit/Source/WebCore/html/canvas/Int16Array.h5
2 files changed, 5 insertions, 3 deletions
diff --git a/src/3rdparty/webkit/Source/WebCore/html/canvas/Float32Array.h b/src/3rdparty/webkit/Source/WebCore/html/canvas/Float32Array.h
index ee1ea560f1..5ea7d8d3d8 100644
--- a/src/3rdparty/webkit/Source/WebCore/html/canvas/Float32Array.h
+++ b/src/3rdparty/webkit/Source/WebCore/html/canvas/Float32Array.h
@@ -38,7 +38,8 @@ public:
static PassRefPtr<Float32Array> create(const float* array, unsigned length);
static PassRefPtr<Float32Array> create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length);
- using TypedArrayBase<float>::set;
+ // Can’t use "using" here due to a bug in the RVCT compiler.
+ void set(TypedArrayBase<float>* array, unsigned offset, ExceptionCode& ec) { return TypedArrayBase<float>::set(array, offset, ec); }
void set(unsigned index, double value)
{
diff --git a/src/3rdparty/webkit/Source/WebCore/html/canvas/Int16Array.h b/src/3rdparty/webkit/Source/WebCore/html/canvas/Int16Array.h
index 6c4f54b879..2e1f254696 100644
--- a/src/3rdparty/webkit/Source/WebCore/html/canvas/Int16Array.h
+++ b/src/3rdparty/webkit/Source/WebCore/html/canvas/Int16Array.h
@@ -38,8 +38,9 @@ public:
static PassRefPtr<Int16Array> create(short* array, unsigned length);
static PassRefPtr<Int16Array> create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length);
- using TypedArrayBase<short>::set;
- using IntegralTypedArrayBase<short>::set;
+ // Can’t use "using" here due to a bug in the RVCT compiler.
+ void set(TypedArrayBase<short>* array, unsigned offset, ExceptionCode& ec) { TypedArrayBase<short>::set(array, offset, ec); }
+ void set(unsigned index, double value) { IntegralTypedArrayBase<short>::set(index, value); }
PassRefPtr<Int16Array> subarray(int start) const;
PassRefPtr<Int16Array> subarray(int start, int end) const;