< prev index next >

src/java.desktop/macosx/native/libawt_lwawt/awt/QuartzSurfaceData.h

Print this page

        

@@ -42,10 +42,12 @@
     SD_Nothing,
     SD_Stroke,
     SD_Fill,
     SD_EOFill,
     SD_Shade,
+    SD_LinearGradient,
+    SD_RadialGradient,
     SD_Pattern,
     SD_Image,
     SD_Text,
     SD_CopyArea,
     SD_Queue,

@@ -63,10 +65,21 @@
     CGFloat    period; // of the cycle (used by the cyclic gradient)
     CGFloat    offset; // of the cycle from the start (used by the cyclic gradient)
 };
 typedef struct _stateShadingInfo StateShadingInfo;
 
+struct _stateGradientInfo
+{
+    CGPoint    start;
+    CGPoint    end;
+    CGFloat  radius;
+    CGFloat* colordata;
+    CGFloat* fractionsdata;
+    jint     fractionsLength;
+};
+typedef struct _stateGradientInfo StateGradientInfo;
+
 struct _statePatternInfo
 {
     CGFloat    tx;
     CGFloat    ty;
     CGFloat    sx;

@@ -120,10 +133,11 @@
                                                 // qsdo->renderType.  Sigh!!!
                                                 // This field is potentially used within CompleteCGContext(...) or
                                                 // its callees.
 
     StateShadingInfo*        shadingInfo;        // tracks shading and its parameters
+    StateGradientInfo*       gradientInfo;       // tracks gradient and its parameters
     StatePatternInfo*        patternInfo;        // tracks pattern and its parameters
     StateGraphicsInfo        graphicsStateInfo;    // tracks other graphics state
 
     BOOL  syncContentsToLayer;    // should changed pixels be synced to a CALayer
     CGRect updateRect;     // used by the layer synchronization code to track update rects.
< prev index next >