Searched defs:context (Results 101 - 125 of 3832) sorted by last modified time

1234567891011>>

/external/skia/src/gpu/
H A DGrTracing.h44 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 DSkGpuDevice.cpp108 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 DSkGr.cpp422 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 DSkGrPixelRef.cpp59 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 DGrBicubicEffect.cpp169 GrContext* context,
168 TestCreate(SkRandom* random, GrContext* context, const GrDrawTargetCaps&, GrTexture* textures[]) argument
H A DGrConfigConversionEffect.cpp141 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 DGrGpuGL.cpp116 GrGpuGL::GrGpuGL(const GrGLContext& ctx, GrContext* context) argument
117 : GrGpu(context)
/external/skia/src/image/
H A DSkImage_Raster.cpp87 static void release_data(void* addr, void* context) { argument
88 SkData* data = static_cast<SkData*>(context);
/external/skia/src/ports/
H A DSkFontHost_mac.cpp212 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 DSkOSWindow_Mac.cpp49 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 DSkOSWindow_win.cpp459 // 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 DClipCacheTest.cpp20 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 DDataRefTest.cpp146 static void delete_int_proc(const void* ptr, size_t len, void* context) { argument
148 SkASSERT(context == gGlobal);
H A DDeferredCanvasTest.cpp695 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 DErrorTest.cpp25 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 DGLProgramsTest.cpp230 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextType>(type)); local
231 if (NULL != context) {
232 GrGpuGL* gpu = static_cast<GrGpuGL*>(context->getGpu());
H A DGrSurfaceTest.cpp18 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 DImageFilterTest.cpp767 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 DLayerDrawLooperTest.cpp63 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 DMD5Test.cpp25 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 DMallocPixelRefTest.cpp16 static void set_to_one_proc(void*, void* context) { argument
17 *(static_cast<int*>(context)) = 1;
H A DPictureTest.cpp788 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 DPremulAlphaRoundTripTest.cpp89 GrContext* context = factory->get(type); local
90 if (NULL == context) {
94 device.reset(SkGpuDevice::Create(context, info, 0));
H A DReadPixelsTest.cpp312 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 DReadWriteAlphaTest.cpp24 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()));

Completed in 528 milliseconds

1234567891011>>