#error "SK_*32_SHIFT values must correspond to GL_BGRA or GL_RGBA format."
#endif
-// WebKit is relying on this old name for the native skia PM config. This will
-// be deleted ASAP because it is so similar to kRGBA_PM_8888_GrPixelConfig but
-// has a different interpretation when skia is compiled BGRA.
-static const GrPixelConfig kRGBA_8888_GrPixelConfig = kSkia8888_PM_GrPixelConfig;
-
// Returns true if the pixel config has 8bit r,g,b,a components in that byte
// order
static inline bool GrPixelConfigIsRGBA8888(GrPixelConfig config) {
}
/**
- * DEPRECATED: This will be removed as soon as WebKit no longer references
- * this (former) enum value.
- */
-static const int kNone_GrAALevel = 0;
-
-/**
* Optional bitfield flags that can be passed to createTexture.
*/
enum GrTextureFlags {
* internal format used by 3D API.
*/
GrPixelConfig fConfig;
-
+
/**
* The number of samples per pixel or 0 to disable full scene AA. This only
* applies if the kRenderTarget_GrTextureFlagBit is set. The actual number
* up to the next supported sample count, or down if it is larger than the
* max supportex count.
*/
- union {
- /**
- * This field has two names for legacy reasons. Use the fSampleCnt name.
- * fAALevel is deprecated and will be removed as soon as WebKit no
- * longer uses it.
- */
- int fSampleCnt;
- int fAALevel;
- };
+ int fSampleCnt;
};
/**
GR_ATLAS_TEXTURE_WIDTH,
GR_ATLAS_TEXTURE_HEIGHT,
maskformat2pixelconfig(format),
- {0} // samples
+ 0 // samples
};
fTexture[format] = fGpu->createTexture(desc, NULL, 0);
if (NULL == fTexture[format]) {
bounds.fRight,
bounds.fBottom,
kAlpha_8_GrPixelConfig,
- {0} // samples
+ 0 // samples
};
tex->set(context, desc);
kRenderTarget_GrTextureFlagBit,
width, height,
config,
- {0}, // samples
+ 0 // samples
};
// When a full readback is faster than a partial we could always make
}
const GrTextureDesc desc = {
- kNone_GrTextureFlags, width, height, config, {0}
+ kNone_GrTextureFlags, width, height, config, 0
};
GrAutoScratchTexture ast(this, desc);
GrTexture* texture = ast.texture();
kRenderTarget_GrTextureFlagBit | kNoStencil_GrTextureFlagBit,
SkScalarFloorToInt(srcRect.width()),
SkScalarFloorToInt(srcRect.height()),
- kRGBA_8888_GrPixelConfig,
- {0} // samples
+ kRGBA_8888_PM_GrPixelConfig,
+ 0 // samples
};
temp1->set(this, desc);
width,
height,
SkGr::Bitmap2PixelConfig(bm),
- {0} // samples
+ 0 // samples
};
fTexture = fContext->createUncachedTexture(desc, NULL, 0);
// We actually only need A8, but it often isn't supported as a
// render target
kRGBA_8888_PM_GrPixelConfig,
- {0} // samples
+ 0 // samples
};
GrAutoScratchTexture pathEntry(context, desc);
dstM.fBounds.width(),
dstM.fBounds.height(),
kAlpha_8_GrPixelConfig,
- {0}, // samples
+ 0, // samples
};
GrAutoScratchTexture ast(context, desc);
rect.width(),
rect.height(),
kRGBA_8888_PM_GrPixelConfig,
- {0} // samples
+ 0 // samples
};
if (filter->asABlur(&blurSize)) {
bitmap.width(),
bitmap.height(),
SkGr::Bitmap2PixelConfig(bitmap),
- {0} // samples
+ 0 // samples
};
GrContext::ScratchTexMatch match;
if (kSaveLayerDeviceRenderTarget_TexType == type) {
bitmap->width(),
bitmap->height(),
SkGr::Bitmap2PixelConfig(*bitmap),
- {0} // samples
+ 0 // samples
};
if (SkBitmap::kIndex8_Config == bitmap->config()) {
kNoStencil_GrTextureFlagBit;
dstDesc.fWidth = 256;
dstDesc.fHeight = 256;
- dstDesc.fConfig = kRGBA_8888_GrPixelConfig;
+ dstDesc.fConfig = kRGBA_8888_PM_GrPixelConfig;
dstDesc.fSampleCnt = 0;
SkAutoTUnref<GrTexture> dstTex(this->createTexture(dstDesc, NULL, 0));