graphicshwdrivers/surfacemgr/inc/surface_hints.h
changeset 188 1b081cb0800b
parent 36 01a6848ebfd7
child 164 25ffed67c7ef
equal deleted inserted replaced
187:9f66f99ee56f 188:1b081cb0800b
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    44 /** Hint whether the surface content is copy protected and can it be
    44 /** Hint whether the surface content is copy protected and can it be
    45     shown on external displays.
    45     shown on external displays.
    46     @see TSurfaceProtection for possible values.
    46     @see TSurfaceProtection for possible values.
    47 */
    47 */
    48 const TInt KSurfaceProtection = 0x3;
    48 const TInt KSurfaceProtection = 0x3;
       
    49 
       
    50 /** Hint about the surface’s characteristics or properties,
       
    51    For example if a surface can be persisted by the effects engine.
       
    52    @see TSurfaceCharacteristics for possible values.
       
    53 */
       
    54 const TInt KSurfaceCharacteristics = 0x4;
    49 
    55 
    50 
    56 
    51 /** Values used for the KSurfaceContent key */
    57 /** Values used for the KSurfaceContent key */
    52 enum TSurfaceContent
    58 enum TSurfaceContent
    53     {
    59     {
   118     */
   124     */
   119     EAllowDigitalProtectionRequired     = 0x00000800,
   125     EAllowDigitalProtectionRequired     = 0x00000800,
   120     };
   126     };
   121 
   127 
   122 
   128 
       
   129 /** Values used for the KSurfaceCharacteristics key. The values are bitmasks and can be combined.
       
   130 */
       
   131 enum TSurfaceCharacteristics
       
   132     {
       
   133     /**
       
   134     * Surface cannot be persisted once it has been closed by the creator
       
   135     */
       
   136     ENotPersistable = 1,
       
   137     };
       
   138 
       
   139 
   123 class TSurfaceUpdate
   140 class TSurfaceUpdate
   124     {
   141     {
   125     /** Constructor.
   142     /** Constructor.
   126         @param aUpdateRate   How often the surface content is redrawn per second.
   143         @param aUpdateRate   How often the surface content is redrawn per second.
   127         @param aTearingFree  When ETrue surface updates should be synchronized
   144         @param aTearingFree  When ETrue surface updates should be synchronized
   183 TBool TSurfaceUpdate::TearingFree() const
   200 TBool TSurfaceUpdate::TearingFree() const
   184     {
   201     {
   185     return ( iValue & 0x80000000 ) ? ETrue : EFalse;
   202     return ( iValue & 0x80000000 ) ? ETrue : EFalse;
   186     }
   203     }
   187 
   204 
   188 }; //namespace surfaceHints
   205 } //namespace surfaceHints
   189 
   206 
   190 #endif //__SURFACE_HINTS_H__
   207 #endif //__SURFACE_HINTS_H__
   191 
   208 
   192 // End of File
   209 // End of File
   193 
   210