summaryrefslogtreecommitdiffstats
path: root/gfx/angle/checkout/src/libANGLE/renderer/BufferImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/angle/checkout/src/libANGLE/renderer/BufferImpl.cpp')
-rw-r--r--gfx/angle/checkout/src/libANGLE/renderer/BufferImpl.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/gfx/angle/checkout/src/libANGLE/renderer/BufferImpl.cpp b/gfx/angle/checkout/src/libANGLE/renderer/BufferImpl.cpp
new file mode 100644
index 0000000000..9cd3c5b6f6
--- /dev/null
+++ b/gfx/angle/checkout/src/libANGLE/renderer/BufferImpl.cpp
@@ -0,0 +1,39 @@
+//
+// Copyright 2020 The ANGLE Project Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+
+// BufferImpl.cpp: Implementation methods rx::BufferImpl class.
+
+#include "libANGLE/renderer/BufferImpl.h"
+
+namespace rx
+{
+
+angle::Result BufferImpl::getSubData(const gl::Context *context,
+ GLintptr offset,
+ GLsizeiptr size,
+ void *outData)
+{
+ UNREACHABLE();
+ return angle::Result::Stop;
+}
+
+angle::Result BufferImpl::setDataWithUsageFlags(const gl::Context *context,
+ gl::BufferBinding target,
+ GLeglClientBufferEXT clientBuffer,
+ const void *data,
+ size_t size,
+ gl::BufferUsage usage,
+ GLbitfield flags)
+{
+ return setData(context, target, data, size, usage);
+}
+
+angle::Result BufferImpl::onLabelUpdate(const gl::Context *context)
+{
+ return angle::Result::Continue;
+}
+
+} // namespace rx