chromium/third_party/angle/src/libANGLE/Stream.cpp

//
// Copyright 2016 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.
//

// Stream.cpp: Implements the egl::Stream class, representing the stream
// where frames are streamed in. Implements EGLStreanKHR.

#include "libANGLE/Stream.h"

#include <EGL/eglext.h>
#include <platform/PlatformMethods.h>

#include "common/debug.h"
#include "common/mathutil.h"
#include "common/platform.h"
#include "common/utilities.h"
#include "libANGLE/Context.h"
#include "libANGLE/Display.h"
#include "libANGLE/renderer/DisplayImpl.h"
#include "libANGLE/renderer/StreamProducerImpl.h"

namespace egl
{

Stream::Stream(Display *display, const AttributeMap &attribs)
    :{}

Stream::~Stream()
{}

void Stream::setLabel(EGLLabelKHR label)
{}

EGLLabelKHR Stream::getLabel() const
{}

void Stream::setConsumerLatency(EGLint latency)
{}

EGLint Stream::getConsumerLatency() const
{}

EGLuint64KHR Stream::getProducerFrame() const
{}

EGLuint64KHR Stream::getConsumerFrame() const
{}

EGLenum Stream::getState() const
{}

void Stream::setConsumerAcquireTimeout(EGLint timeout)
{}

EGLint Stream::getConsumerAcquireTimeout() const
{}

Stream::ProducerType Stream::getProducerType() const
{}

Stream::ConsumerType Stream::getConsumerType() const
{}

EGLint Stream::getPlaneCount() const
{}

rx::StreamProducerImpl *Stream::getImplementation()
{}

Error Stream::createConsumerGLTextureExternal(const AttributeMap &attributes, gl::Context *context)
{}

Error Stream::createProducerD3D11Texture(const AttributeMap &attributes)
{}

// Called when the consumer of this stream starts using the stream
Error Stream::consumerAcquire(const gl::Context *context)
{}

Error Stream::consumerRelease(const gl::Context *context)
{}

bool Stream::isConsumerBoundToContext(const gl::Context *context) const
{}

Error Stream::validateD3D11Texture(const void *texture, const AttributeMap &attributes) const
{}

Error Stream::postD3D11Texture(void *texture, const AttributeMap &attributes)
{}

// This is called when a texture object associated with this stream is destroyed. Even if multiple
// textures are bound, one being destroyed invalidates the stream, so all the remaining textures
// will be released and the stream will be invalidated.
void Stream::releaseTextures()
{}

}  // namespace egl