1 //
2 // Copyright 2020 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 
7 // BufferImpl.cpp: Implementation methods rx::BufferImpl class.
8 
9 #include "libANGLE/renderer/BufferImpl.h"
10 
11 namespace rx
12 {
13 
getSubData(const gl::Context * context,GLintptr offset,GLsizeiptr size,void * outData)14 angle::Result BufferImpl::getSubData(const gl::Context *context,
15                                      GLintptr offset,
16                                      GLsizeiptr size,
17                                      void *outData)
18 {
19     UNREACHABLE();
20     return angle::Result::Stop;
21 }
22 
setDataWithUsageFlags(const gl::Context * context,gl::BufferBinding target,GLeglClientBufferEXT clientBuffer,const void * data,size_t size,gl::BufferUsage usage,GLbitfield flags)23 angle::Result BufferImpl::setDataWithUsageFlags(const gl::Context *context,
24                                                 gl::BufferBinding target,
25                                                 GLeglClientBufferEXT clientBuffer,
26                                                 const void *data,
27                                                 size_t size,
28                                                 gl::BufferUsage usage,
29                                                 GLbitfield flags)
30 {
31     return setData(context, target, data, size, usage);
32 }
33 
34 }  // namespace rx
35