diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-07-14 17:41:05 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2016-08-04 12:37:36 +0000 |
commit | 399c965b6064c440ddcf4015f5f8e9d131c7a0a6 (patch) | |
tree | 6b06b60ff365abef0e13b3503d593a0df48d20e8 /chromium/third_party/angle/src/libANGLE/renderer/gl/TextureGL.h | |
parent | 7366110654eec46f21b6824f302356426f48cd74 (diff) |
BASELINE: Update Chromium to 52.0.2743.76 and Ninja to 1.7.1
Change-Id: I382f51b959689505a60f8b707255ecb344f7d8b4
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/third_party/angle/src/libANGLE/renderer/gl/TextureGL.h')
-rw-r--r-- | chromium/third_party/angle/src/libANGLE/renderer/gl/TextureGL.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/chromium/third_party/angle/src/libANGLE/renderer/gl/TextureGL.h b/chromium/third_party/angle/src/libANGLE/renderer/gl/TextureGL.h index 6d64d9d1f36..1daa97b4d79 100644 --- a/chromium/third_party/angle/src/libANGLE/renderer/gl/TextureGL.h +++ b/chromium/third_party/angle/src/libANGLE/renderer/gl/TextureGL.h @@ -11,6 +11,7 @@ #include "libANGLE/angletypes.h" #include "libANGLE/renderer/TextureImpl.h" +#include "libANGLE/Texture.h" namespace rx { @@ -51,7 +52,7 @@ struct LevelInfoGL class TextureGL : public TextureImpl { public: - TextureGL(GLenum type, + TextureGL(const gl::TextureState &state, const FunctionsGL *functions, const WorkaroundsGL &workarounds, StateManagerGL *stateManager, @@ -77,14 +78,18 @@ class TextureGL : public TextureImpl gl::Error setStorage(GLenum target, size_t levels, GLenum internalFormat, const gl::Extents &size) override; - gl::Error generateMipmaps(const gl::TextureState &textureState) override; + gl::Error setImageExternal(GLenum target, + egl::Stream *stream, + const egl::Stream::GLTextureDescription &desc) override; + + gl::Error generateMipmaps() override; void bindTexImage(egl::Surface *surface) override; void releaseTexImage() override; gl::Error setEGLImageTarget(GLenum target, egl::Image *image) override; - void syncState(size_t textureUnit, const gl::TextureState &textureState) const; + void syncState(size_t textureUnit) const; GLuint getTextureID() const; gl::Error getAttachmentRenderTarget(const gl::FramebufferAttachment::Target &target, @@ -93,9 +98,9 @@ class TextureGL : public TextureImpl return gl::Error(GL_OUT_OF_MEMORY, "Not supported on OpenGL"); } - private: - GLenum mTextureType; + void setBaseLevel(GLuint) override {} + private: const FunctionsGL *mFunctions; const WorkaroundsGL &mWorkarounds; StateManagerGL *mStateManager; |