diff options
Diffstat (limited to 'libs/rs/rsContext.h')
-rw-r--r-- | libs/rs/rsContext.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/rs/rsContext.h b/libs/rs/rsContext.h index 31bf5d60c2b2..1485d8a4a06a 100644 --- a/libs/rs/rsContext.h +++ b/libs/rs/rsContext.h @@ -32,6 +32,7 @@ #include "rsAdapter.h" #include "rsSampler.h" #include "rsLight.h" +#include "rsFont.h" #include "rsProgramFragment.h" #include "rsProgramStore.h" #include "rsProgramRaster.h" @@ -76,6 +77,7 @@ public: ProgramVertexState mStateVertex; LightState mStateLight; VertexArrayState mStateVertexArray; + FontState mStateFont; ScriptCState mScriptC; ShaderCache mShaderCache; @@ -86,6 +88,7 @@ public: void setVertex(ProgramVertex *); void setFragment(ProgramFragment *); void setFragmentStore(ProgramStore *); + void setFont(Font *); void updateSurface(void *sur); @@ -93,6 +96,7 @@ public: const ProgramStore * getFragmentStore() {return mFragmentStore.get();} const ProgramRaster * getRaster() {return mRaster.get();} const ProgramVertex * getVertex() {return mVertex.get();} + Font * getFont() {return mFont.get();} bool setupCheck(); bool checkDriver() const {return mEGL.mSurface != 0;} @@ -124,6 +128,9 @@ public: ProgramRaster * getDefaultProgramRaster() const { return mStateRaster.mDefault.get(); } + Font* getDefaultFont() const { + return mStateFont.mDefault.get(); + } uint32_t getWidth() const {return mWidth;} uint32_t getHeight() const {return mHeight;} @@ -221,7 +228,7 @@ protected: ObjectBaseRef<ProgramVertex> mVertex; ObjectBaseRef<ProgramStore> mFragmentStore; ObjectBaseRef<ProgramRaster> mRaster; - + ObjectBaseRef<Font> mFont; struct ObjDestroyOOB { Mutex mMutex; |