hostsupport/hostopenvg/src/sfBlitter.cpp
branchbug235_bringup_0
changeset 69 3f914c77c2e9
parent 53 c2ef9095503a
equal deleted inserted replaced
68:8d4efe9fa1cf 69:3f914c77c2e9
    18  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
    18  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
    19  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR
    19  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR
    20  * THE USE OR OTHER DEALINGS IN THE MATERIALS.
    20  * THE USE OR OTHER DEALINGS IN THE MATERIALS.
    21  */
    21  */
    22 
    22 
    23 #include "sfBlitter.h"
    23 #ifndef __SFDYNAMICBLITTER_H
       
    24 #include "sfDynamicBlitter.h"
       
    25 #endif
    24 
    26 
       
    27 #if defined(RI_COMPILE_LLVM_BYTECODE)
    25 #include "sfCompiler.h"
    28 #include "sfCompiler.h"
       
    29 #endif
    26 
    30 
    27 namespace OpenVGRI {
    31 namespace OpenVGRI {
    28 
    32 
    29 DynamicBlitter::DynamicBlitter() :
    33 DynamicBlitter::DynamicBlitter() :
    30     m_maskOperation(VG_SET_MASK),
    34     m_maskOperation(VG_SET_MASK),
   106 
   110 
   107 }
   111 }
   108 
   112 
   109 void DynamicBlitter::blit()
   113 void DynamicBlitter::blit()
   110 {
   114 {
   111 #if 1
   115 #if defined(RI_COMPILE_LLVM_BYTECODE)
   112     bool compiledBlitter = false;
   116     bool compiledBlitter = false;
   113     {
   117     {
   114         PPCompiler& compiler = PPCompiler::getCompiler();
   118         PPCompiler& compiler = PPCompiler::getCompiler();
   115         PPCompiler::BlitterHandle blitterHandle = compiler.compileBlitter(getSignatureState());
   119         PPCompiler::BlitterHandle blitterHandle = compiler.compileBlitter(getSignatureState());
   116         if (blitterHandle)
   120         if (blitterHandle)
   123     }
   127     }
   124 
   128 
   125     if (!compiledBlitter)
   129     if (!compiledBlitter)
   126 #endif
   130 #endif
   127     {
   131     {
   128         executeBlitter(getSignatureState(), getUniforms());
   132         OpenVGRI::executeBlitter(getSignatureState(), getUniforms());
   129     }
   133     }
   130 }
   134 }
   131 
   135 
   132 }
   136 }