diff options
author | Alex Sakhartchouk <alexst@google.com> | 2011-04-04 14:33:19 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-04-04 14:33:19 -0700 |
commit | 78a9f6a8227d1e9b465acb84f8476a30c5af9c13 (patch) | |
tree | 4bb01528d4691740ec94528d0816f65706be34ed /libs/rs/rsAllocation.h | |
parent | fb2e9d23e03c93fd11d79545a07ae776721117f9 (diff) | |
parent | 8e90f2bc1fa35a2dc7bd2aab8b8241b628800218 (diff) | |
download | frameworks_base-78a9f6a8227d1e9b465acb84f8476a30c5af9c13.zip frameworks_base-78a9f6a8227d1e9b465acb84f8476a30c5af9c13.tar.gz frameworks_base-78a9f6a8227d1e9b465acb84f8476a30c5af9c13.tar.bz2 |
Merge "First draft of fbo in renderscript. Updating samples and benchmark"
Diffstat (limited to 'libs/rs/rsAllocation.h')
-rw-r--r-- | libs/rs/rsAllocation.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/libs/rs/rsAllocation.h b/libs/rs/rsAllocation.h index e63140c..d334841 100644 --- a/libs/rs/rsAllocation.h +++ b/libs/rs/rsAllocation.h @@ -71,13 +71,17 @@ public: void syncAll(Context *rsc, RsAllocationUsageType src); - void deferedUploadToTexture(const Context *rsc); + void deferredUploadToTexture(const Context *rsc); void uploadToTexture(const Context *rsc); uint32_t getTextureID() const {return mTextureID;} + void deferredAllocateRenderTarget(const Context *rsc); + void allocateRenderTarget(const Context *rsc); + uint32_t getRenderTargetID() const {return mRenderTargetID;} + uint32_t getGLTarget() const; - void deferedUploadToBufferObject(const Context *rsc); + void deferredUploadToBufferObject(const Context *rsc); void uploadToBufferObject(const Context *rsc); uint32_t getBufferObjectID() const {return mBufferID;} @@ -118,6 +122,9 @@ public: bool getIsTexture() const { return (mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE) != 0; } + bool getIsRenderTarget() const { + return (mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_RENDER_TARGET) != 0; + } bool getIsBufferObject() const { return (mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_VERTEX) != 0; } @@ -161,7 +168,10 @@ protected: // is allowed. uint32_t mBufferID; - bool mUploadDefered; + // Is this a legal structure to be used as an FBO render target + uint32_t mRenderTargetID; + + bool mUploadDeferred; private: void init(Context *rsc, const Type *); |