/external/skia/src/gpu/ |
H A D | GrTracing.h | 44 GrGpuTraceMarkerGeneratorContext(GrContext* context) : fContext(context) {} argument 88 #define GR_CREATE_TRACE_MARKER_CONTEXT(name, context) \ 93 context) \ 96 #define INTERNAL_GR_CREATE_TRACE_MARKER_C(name, name_counter, context) \ 97 GR_CREATE_GPU_TRACE_MARKER_C(name, name_counter, context) \ 101 #define GR_CREATE_GPU_TRACE_MARKER_C(name, name_counter, context) \ 102 GrGpuTraceMarkerGeneratorContext SK_MACRO_APPEND_LINE(TMG)(context); \ 103 if (context->isGpuTracingEnabled()) { \
|
H A D | SkGpuDevice.cpp | 108 fTexture = GrLockAndRefCachedBitmapTexture(device->context(), bitmap, params); 134 static SkBitmap make_bitmap(GrContext* context, GrRenderTarget* renderTarget) { argument 152 SkGpuDevice::SkGpuDevice(GrContext* context, GrTexture* texture, unsigned flags) argument 153 : SkBitmapDevice(make_bitmap(context, texture->asRenderTarget())) { 154 this->initFromRenderTarget(context, texture->asRenderTarget(), flags); 157 SkGpuDevice::SkGpuDevice(GrContext* context, GrRenderTarget* renderTarget, unsigned flags) argument 158 : SkBitmapDevice(make_bitmap(context, renderTarget)) { 159 this->initFromRenderTarget(context, renderTarget, flags); 162 void SkGpuDevice::initFromRenderTarget(GrContext* context, argument 167 fContext = context; 197 Create(GrContext* context, const SkImageInfo& origInfo, int sampleCount) argument 612 draw_mask(GrContext* context, const SkRect& maskRect, GrPaint* grp, GrTexture* mask) argument 628 draw_with_mask_filter(GrContext* context, const SkPath& devPath, SkMaskFilter* filter, const SkRegion& clip, GrPaint* grp, SkPaint::Style style) argument 672 create_mask_GPU(GrContext* context, const SkRect& maskRect, const SkPath& devPath, const GrStrokeInfo& strokeInfo, bool doAA, GrAutoScratchTexture* mask) argument 882 determine_clipped_src_rect(const GrContext* context, const SkBitmap& bitmap, const SkRect* srcRectPtr, SkIRect* clippedSrcIRect) argument [all...] |
H A D | SkGr.cpp | 422 void SkPaint2GrPaintNoShader(GrContext* context, const SkPaint& skPaint, GrColor grColor, argument 458 SkAutoTUnref<GrEffectRef> effect(colorFilter->asNewEffect(context)); 466 // If the dither flag is set, then we need to see if the underlying context 470 const GrRenderTarget *target = context->getRenderTarget(); 496 AutoMatrix(GrContext* context) { argument 497 fMatrix = context->getMatrix(); 498 fContext = context; 509 void SkPaint2GrPaintShader(GrContext* context, const SkPaint& skPaint, argument 513 SkPaint2GrPaintNoShader(context, skPaint, SkColor2GrColor(skPaint.getColor()), 519 // matrix. We don't reset the matrix on the context becaus [all...] |
H A D | SkGrPixelRef.cpp | 59 GrContext* context = texture->getContext(); local 60 if (NULL == context) { 82 GrTexture* dst = context->createUncachedTexture(desc, NULL, 0); 87 context->copyTexture(texture, dst->asRenderTarget(), topLeft); 132 GrContext* context = fSurface->getContext(); local 134 if (NULL != context && NULL != texture) { 135 context->unlockScratchTexture(texture);
|
/external/skia/src/gpu/effects/ |
H A D | GrBicubicEffect.cpp | 169 GrContext* context, 168 TestCreate(SkRandom* random, GrContext* context, const GrDrawTargetCaps&, GrTexture* textures[]) argument
|
H A D | GrConfigConversionEffect.cpp | 141 void GrConfigConversionEffect::TestForPreservingPMConversions(GrContext* context, argument 170 SkAutoTUnref<GrTexture> readTex(context->createUncachedTexture(desc, NULL, 0)); 174 SkAutoTUnref<GrTexture> tempTex(context->createUncachedTexture(desc, NULL, 0)); 179 SkAutoTUnref<GrTexture> dataTex(context->createUncachedTexture(desc, data, 0)); 189 GrContext::AutoWideOpenIdentityDraw awoid(context, NULL); 220 context->setRenderTarget(readTex->asRenderTarget()); 223 context->drawRectToRect(paint1, kDstRect, kSrcRect); 227 context->setRenderTarget(tempTex->asRenderTarget()); 230 context->drawRectToRect(paint2, kDstRect, kSrcRect); 231 context [all...] |
/external/skia/src/gpu/gl/ |
H A D | GrGpuGL.cpp | 116 GrGpuGL::GrGpuGL(const GrGLContext& ctx, GrContext* context) argument 117 : GrGpu(context)
|
/external/skia/src/image/ |
H A D | SkImage_Raster.cpp | 87 static void release_data(void* addr, void* context) { argument 88 SkData* data = static_cast<SkData*>(context);
|
/external/skia/src/ports/ |
H A D | SkFontHost_mac.cpp | 212 CG_EXTERN void CGContextSetAllowsFontSmoothing(CGContextRef context, bool value); 213 CG_EXTERN void CGContextSetAllowsFontSubpixelPositioning(CGContextRef context, bool value); 214 CG_EXTERN void CGContextSetShouldSubpixelPositionFonts(CGContextRef context, bool value); 215 CG_EXTERN void CGContextSetAllowsFontSubpixelQuantization(CGContextRef context, bool value); 216 CG_EXTERN void CGContextSetShouldSubpixelQuantizeFonts(CGContextRef context, bool value); 330 CGRGBPixel* getCG(const SkScalerContext_Mac& context, const SkGlyph& glyph, 765 CGRGBPixel* Offscreen::getCG(const SkScalerContext_Mac& context, const SkGlyph& glyph, argument 810 CGContextSetFont(fCG, context.fCGFont); 811 CGContextSetFontSize(fCG, 1 /*CTFontGetSize(context.fCTFont)*/); 812 CGContextSetTextMatrix(fCG, CTFontGetMatrix(context [all...] |
/external/skia/src/views/mac/ |
H A D | SkOSWindow_Mac.cpp | 49 CGContextRef context; local 57 &context); 60 SkDebugf("Got error %d getting the context!\n", status); 67 gCurrOSWin->doPaint(context); 493 SkDebugf("----- agl context %p\n", ctx);
|
/external/skia/src/views/win/ |
H A D | SkOSWindow_win.cpp | 459 // Create a GL context 460 EGLContext context = eglCreateContext(display, *eglConfig, local 463 if (context == EGL_NO_CONTEXT ) { 467 // Make the context current 468 if (!eglMakeCurrent(display, surface, surface, context)) { 473 *eglContext = context;
|
/external/skia/tests/ |
H A D | ClipCacheTest.cpp | 20 static GrTexture* createTexture(GrContext* context) { argument 34 GrTexture* texture = context->createUncachedTexture(desc, textureData, 0); 44 static void test_clip_bounds(skiatest::Reporter* reporter, GrContext* context) { argument 55 GrTexture* texture = context->createUncachedTexture(desc, NULL, 0); 133 static void test_cache(skiatest::Reporter* reporter, GrContext* context) { argument 136 createTexture(context); 140 cache.setContext(context); 228 GrContext* context = factory->get(glType); local 229 if (NULL == context) { 233 test_cache(reporter, context); [all...] |
H A D | DataRefTest.cpp | 146 static void delete_int_proc(const void* ptr, size_t len, void* context) { argument 148 SkASSERT(context == gGlobal);
|
H A D | DeferredCanvasTest.cpp | 695 GrContext* context = factory->get(GrContextFactory::kNative_GLContextType); local 696 if (NULL == context) { 700 surface = SkSurface::NewRenderTarget(context, imageSpec); 762 GrContext* context = factory->get(GrContextFactory::kNative_GLContextType); local 763 if (NULL == context) { 766 surface = SkSurface::NewRenderTarget(context, imageSpec); 767 alternateSurface = SkSurface::NewRenderTarget(context, imageSpec);
|
H A D | ErrorTest.cpp | 25 static void cb(SkError err, void *context) { argument 26 ErrorContext *context_ptr = static_cast<ErrorContext *>(context); 34 ErrorContext context; local 35 context.fReporter = reporter; 36 context.fIntPointer = &test_value; 38 SkSetErrorCallback(cb, &context);
|
H A D | GLProgramsTest.cpp | 230 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextType>(type)); local 231 if (NULL != context) { 232 GrGpuGL* gpu = static_cast<GrGpuGL*>(context->getGpu());
|
H A D | GrSurfaceTest.cpp | 18 GrContext* context = factory->get(GrContextFactory::kNull_GLContextType); local 19 if (NULL != context) { 26 GrSurface* texRT1 = context->createUncachedTexture(desc, NULL, 0); 27 GrSurface* texRT2 = context->createUncachedTexture(desc, NULL, 0); 29 GrSurface* tex1 = context->createUncachedTexture(desc, NULL, 0); 47 GrSurface* externalTexRT = context->wrapBackendTexture(backendDesc);
|
H A D | ImageFilterTest.cpp | 767 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextType>(0)); local 768 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context, 775 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextType>(0)); local 776 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context, 783 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextType>(0)); local 784 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context,
|
H A D | LayerDrawLooperTest.cpp | 63 SkDrawLooper::Context* context = looper->createContext(&canvas, buffer); local 66 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 74 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 81 REPORTER_ASSERT(reporter, !context->next(&canvas, &paint)); 103 SkDrawLooper::Context* context = looper->createContext(&canvas, buffer); local 106 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 114 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 121 REPORTER_ASSERT(reporter, !context->next(&canvas, &paint)); 143 SkDrawLooper::Context* context = looper->createContext(&canvas, buffer); local 146 REPORTER_ASSERT(reporter, context [all...] |
H A D | MD5Test.cpp | 25 SkMD5 context; local 26 context.update(reinterpret_cast<const uint8_t*>(string), len); 28 context.finish(digest); 35 SkMD5 context; local 39 context.update(data, 1); 42 context.finish(digest);
|
H A D | MallocPixelRefTest.cpp | 16 static void set_to_one_proc(void*, void* context) { argument 17 *(static_cast<int*>(context)) = 1;
|
H A D | PictureTest.cpp | 788 GrContext* context = factory->get(GrContextFactory::kNative_GLContextType); local 851 SkAutoTUnref<SkSurface> surface(SkSurface::NewScratchRenderTarget(context, info)); 1235 static void assert_one_parse_error_cb(SkError error, void* context) { argument 1236 ErrorContext* errorContext = static_cast<ErrorContext*>(context); 1269 ErrorContext context; local 1270 context.fErrors = 0; 1271 context.fReporter = reporter; 1272 SkSetErrorCallback(assert_one_parse_error_cb, &context);
|
H A D | PremulAlphaRoundTripTest.cpp | 89 GrContext* context = factory->get(type); local 90 if (NULL == context) { 94 device.reset(SkGpuDevice::Create(context, info, 0));
|
H A D | ReadPixelsTest.cpp | 312 GrContext* context = factory->get(type); local 313 if (NULL == context) { 323 GrAutoScratchTexture ast(context, desc, GrContext::kExact_ScratchTexMatch); 325 device.reset(new SkGpuDevice(context, tex));
|
H A D | ReadWriteAlphaTest.cpp | 24 GrContext* context = factory->get(glType); local 25 if (NULL == context) { 43 GrTexture* texture = context->createUncachedTexture(desc, textureData, 0); 84 SkAutoTUnref<SkBaseDevice> device(new SkGpuDevice(context, texture->asRenderTarget()));
|