tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

BufferImpl.cpp (1268B)


      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 
     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 
     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 angle::Result BufferImpl::onLabelUpdate(const gl::Context *context)
     35 {
     36    return angle::Result::Continue;
     37 }
     38 
     39 }  // namespace rx