Home
last modified time | relevance | path

Searched refs:canvasSize (Results 1 – 13 of 13) sorted by relevance

/third_party/flutter/skia/bench/
DPictureNestingBench.cpp34 SkIPoint canvasSize = onGetSize(); in doDraw() local
36 canvas->scale(SkIntToScalar(canvasSize.x()), SkIntToScalar(canvasSize.y())); in doDraw()
120 SkIPoint canvasSize = onGetSize(); in onDraw() local
124 SkCanvas* c = recorder.beginRecording(SkIntToScalar(canvasSize.x()), in onDraw()
125 SkIntToScalar(canvasSize.y())); in onDraw()
144 SkIPoint canvasSize = onGetSize(); in onDelayedSetup() local
146 SkCanvas* c = recorder.beginRecording(SkIntToScalar(canvasSize.x()), in onDelayedSetup()
147 SkIntToScalar(canvasSize.y())); in onDelayedSetup()
/third_party/skia/bench/
DPictureNestingBench.cpp34 SkIPoint canvasSize = onGetSize(); in doDraw() local
36 canvas->scale(SkIntToScalar(canvasSize.x()), SkIntToScalar(canvasSize.y())); in doDraw()
120 SkIPoint canvasSize = onGetSize(); in onDraw() local
124 SkCanvas* c = recorder.beginRecording(SkIntToScalar(canvasSize.x()), in onDraw()
125 SkIntToScalar(canvasSize.y())); in onDraw()
144 SkIPoint canvasSize = onGetSize(); in onDelayedSetup() local
146 SkCanvas* c = recorder.beginRecording(SkIntToScalar(canvasSize.x()), in onDelayedSetup()
147 SkIntToScalar(canvasSize.y())); in onDelayedSetup()
/third_party/skia/tools/viewer/
DStatsLayer.cpp93 SkISize canvasSize = canvas->getBaseLayerSize(); in onPaint() local
94 SkRect rect = SkRect::MakeXYWH(SkIntToScalar(canvasSize.fWidth-kDisplayWidth-kDisplayPadding), in onPaint()
101 canvas->concat(SkMatrix::RectToRect(SkRect::Make(canvasSize), in onPaint()
102 SkRect::MakeXYWH(canvasSize.width() * (1 - kScale), in onPaint()
104 canvasSize.width() * kScale, in onPaint()
105 canvasSize.height() * kScale))); in onPaint()
/third_party/flutter/skia/tools/viewer/
DStatsLayer.cpp93 SkISize canvasSize = canvas->getBaseLayerSize(); in onPaint() local
94 SkRect rect = SkRect::MakeXYWH(SkIntToScalar(canvasSize.fWidth-kDisplayWidth-kDisplayPadding), in onPaint()
101 canvas->concat(SkMatrix::MakeRectToRect(SkRect::Make(canvasSize), in onPaint()
102 SkRect::MakeXYWH(canvasSize.width() * (1 - kScale), in onPaint()
104 canvasSize.width() * kScale, in onPaint()
105 canvasSize.height() * kScale), in onPaint()
/third_party/flutter/engine/flutter/lib/web_ui/test/
Dcanvas_test.dart19 {ui.Rect canvasSize, ui.VoidCallback whenDone}) {
20 canvasSize ??= ui.Rect.fromLTWH(0, 0, 100, 100);
22 testFn(BitmapCanvas(canvasSize));
24 testFn(HoudiniCanvas(canvasSize));
/third_party/skia/fuzz/
DFuzzDDLThreading.cpp118 SkISize canvasSize = kPromiseImageSize; in DDLFuzzer() local
119 canvasSize.fWidth *= kPromiseImagesPerDDL; in DDLFuzzer()
120 SkImageInfo ii = SkImageInfo::Make(canvasSize, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in DDLFuzzer()
/third_party/flutter/flutter/packages/flutter/lib/src/painting/
Dflutter_logo.dart399 final Size canvasSize = _config.margin.deflateSize(configuration.size);
400 if (canvasSize.isEmpty)
413 final FittedSizes fittedSize = applyBoxFit(BoxFit.contain, logoSize, canvasSize);
415 final Rect rect = Alignment.center.inscribe(fittedSize.destination, offset & canvasSize);
416 final double centerSquareHeight = canvasSize.shortestSide;
418 offset.dx + (canvasSize.width - centerSquareHeight) / 2.0,
419 offset.dy + (canvasSize.height - centerSquareHeight) / 2.0,
445 offset & canvasSize,
Dshader_warm_up.dart104 this.canvasSize = const ui.Size(100.0, 100.0)});
112 final ui.Size canvasSize;
115 ui.Size get size => canvasSize;
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/surface/
Dpicture.dart29 this.canvasSize,
31 }) : assert(canvasSize != null),
34 final ui.Size canvasSize;
248 canvasSize: _optimalLocalCullRect.size,
270 /// - Fits the requested [canvasSize]. This is a hard requirement. Otherwise
277 final ui.Size canvasSize = bounds.size;
296 final bool fitsExactly = candidateSize.width == canvasSize.width &&
297 candidateSize.height == canvasSize.height;
Dsurface.dart64 final double aSize = a.canvasSize.height * a.canvasSize.width;
65 final double bSize = b.canvasSize.height * b.canvasSize.width;
/third_party/flutter/flutter/examples/layers/raw/
Dshader_warm_up.dart20 drawCallSpacing: 80.0, canvasSize: ui.Size(1024, 1024))
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fPolygonOffsetTests.cpp257 …e, const char* description, GLenum internalFormat, const char* internalFormatName, int canvasSize);
268 …me, const char* description, GLenum internalFormat, const char* internalFormatName, int canvasSize) in PolygonOffsetTestCase() argument
272 , m_targetSize (canvasSize) in PolygonOffsetTestCase()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fPolygonOffsetTests.cpp254 …e, const char* description, GLenum internalFormat, const char* internalFormatName, int canvasSize);
265 …me, const char* description, GLenum internalFormat, const char* internalFormatName, int canvasSize) in PolygonOffsetTestCase() argument
269 , m_targetSize (canvasSize) in PolygonOffsetTestCase()