/third_party/skia/tests/ |
D | RecordOptsTest.cpp | 24 SkRecorder recorder(&record, W, H); in DEF_TEST() local 26 recorder.drawRect(SkRect::MakeWH(200, 200), SkPaint()); in DEF_TEST() 27 recorder.drawRect(SkRect::MakeWH(300, 300), SkPaint()); in DEF_TEST() 28 recorder.drawRect(SkRect::MakeWH(100, 100), SkPaint()); in DEF_TEST() 39 SkRecorder recorder(&record, W, H); in DEF_TEST() local 41 recorder.save(); in DEF_TEST() 42 recorder.clipRect(SkRect::MakeWH(200, 200)); in DEF_TEST() 43 recorder.restore(); in DEF_TEST() 53 SkRecorder recorder(&record, W, H); in DEF_TEST() local 56 recorder.save(); in DEF_TEST() [all …]
|
D | RecordPatternTest.cpp | 27 SkRecorder recorder(&record, 1920, 1200); in DEF_TEST() local 30 recorder.save(); in DEF_TEST() 33 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 36 recorder.restore(); in DEF_TEST() 47 SkRecorder recorder(&record, 1920, 1200); in DEF_TEST() local 51 recorder.save(); in DEF_TEST() 52 recorder.clipRect(SkRect::MakeWH(300, 200)); in DEF_TEST() 53 recorder.restore(); in DEF_TEST() 70 SkRecorder recorder(&record, 1920, 1200); in DEF_TEST() local 72 recorder.save(); in DEF_TEST() [all …]
|
D | RecordDrawTest.cpp | 35 SkRecorder recorder(&record, W, H); in DEF_TEST() local 38 recorder.save(); in DEF_TEST() 40 recorder.drawColor(SK_ColorRED); in DEF_TEST() 42 recorder.scale(2, 2); in DEF_TEST() 44 recorder.restore(); in DEF_TEST() 52 recorder.save(); in DEF_TEST() 53 recorder.save(); in DEF_TEST() 54 recorder.restore(); in DEF_TEST() 55 recorder.restore(); in DEF_TEST() 62 SkRecorder recorder(&record, W, H); in DEF_TEST() local [all …]
|
D | PictureTest.cpp | 54 SkPictureRecorder recorder; in test_deleting_empty_picture() local 56 recorder.beginRecording(0, 0); in test_deleting_empty_picture() 58 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_deleting_empty_picture() 60 recorder.beginRecording(0, 0); in test_deleting_empty_picture() 65 SkPictureRecorder recorder; in test_serializing_empty_picture() local 66 recorder.beginRecording(0, 0); in test_serializing_empty_picture() 67 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in test_serializing_empty_picture() 166 static sk_sp<SkPicture> Copy(SkPictureRecorder* recorder) { in Copy() argument 171 recorder->partialReplay(canvas); in Copy() 216 SkPictureRecorder recorder; in DEF_TEST() local [all …]
|
D | RecorderTest.cpp | 44 SkRecorder recorder(&record, 1920, 1080); in DEF_TEST() local 46 recorder.drawRect(SkRect::MakeWH(10, 10), SkPaint()); in DEF_TEST() 66 SkRecorder recorder(&record, 1920, 1080); in DEF_TEST() local 67 recorder.saveLayer(&bounds, &paint); in DEF_TEST() 84 SkRecorder recorder(&record, 100, 100); in DEF_TEST() local 87 recorder.drawImage(image.get(), 0, 0, SkSamplingOptions()); in DEF_TEST() 99 SkRecorder recorder(&record, 100, 100); in DEF_TEST() local 102 recorder.drawImageRect(image.get(), SkRect::MakeWH(100, 100), SkRect::MakeWH(100, 100), in DEF_TEST() 119 SkRecorder recorder(&record, bigBounds); in DEF_TEST() local 120 REPORTER_ASSERT(reporter, recorder.imageInfo().width() > 0 && in DEF_TEST() [all …]
|
D | PictureBBHTest.cpp | 44 SkPictureRecorder recorder; in run() local 45 SkCanvas* recordCanvas = recorder.beginRecording(SkIntToScalar(fPictureWidth), in run() 49 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in run() 98 SkPictureRecorder recorder; in DEF_TEST() local 104 auto canvas = recorder.beginRecording(cull, bbh); in DEF_TEST() 110 auto pic = recorder.finishRecordingAsPicture(); in DEF_TEST() 116 auto canvas = recorder.beginRecording(cull, &factory); in DEF_TEST() 120 auto pic = recorder.finishRecordingAsPicture(); in DEF_TEST()
|
D | PictureShaderTest.cpp | 21 SkPictureRecorder recorder; in DEF_TEST() local 22 recorder.beginRecording(100, 100)->drawColor(SK_ColorGREEN); in DEF_TEST() 23 return recorder.finishRecordingAsPicture(); in DEF_TEST() 62 SkPictureRecorder recorder; in DEF_TEST() local 63 recorder.beginRecording(100, 100)->drawColor(SK_ColorGREEN); in DEF_TEST() 64 return recorder.finishRecordingAsPicture(); in DEF_TEST()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | ObjectContentHasher.h | 40 static constexpr void Call(ObjectContentHasher* recorder, in Call() 43 HashCombine(&recorder->mContentHash, value, args...); in Call() 49 static constexpr void Call(ObjectContentHasher* recorder, T* obj) { 58 static constexpr void Call(ObjectContentHasher* recorder, const std::vector<T>& vec) { 59 recorder->RecordIterable<std::vector<T>>(vec); 75 static constexpr void Call(ObjectContentHasher* recorder, const std::string& str) { 76 recorder->RecordIterable<std::string>(str);
|
/third_party/skia/bench/ |
D | PictureNestingBench.cpp | 51 SkPictureRecorder recorder; in sierpinsky() local 55 c = recorder.beginRecording(1, 1); in sierpinsky() 77 canvas->drawPicture(recorder.finishRecordingAsPicture()); in sierpinsky() 121 SkPictureRecorder recorder; in onDraw() local 124 SkCanvas* c = recorder.beginRecording(SkIntToScalar(canvasSize.x()), in onDraw() 127 (void)recorder.finishRecordingAsPicture(); in onDraw() 145 SkPictureRecorder recorder; in onDelayedSetup() local 146 SkCanvas* c = recorder.beginRecording(SkIntToScalar(canvasSize.x()), in onDelayedSetup() 150 fPicture = recorder.finishRecordingAsPicture(); in onDelayedSetup()
|
/third_party/skia/gm/ |
D | recordopts.cpp | 111 SkPictureRecorder recorder; in draw_svg_opacity_and_filter_layer_sequence() local 112 SkCanvas* recordCanvas = recorder.beginRecording(SkIntToScalar(kTestRectSize + 2), in draw_svg_opacity_and_filter_layer_sequence() 117 shape = recorder.finishRecordingAsPicture(); in draw_svg_opacity_and_filter_layer_sequence() 169 SkPictureRecorder recorder; variable 170 drawTestSequence(recorder.beginRecording(SkIntToScalar(kTestRectSize), 173 recorder.finishRecordingAsPicture()->playback(canvas); 214 SkPictureRecorder recorder; variable 215 drawTestSequence(recorder.beginRecording(SkIntToScalar(kTestRectSize), 218 recorder.finishRecordingAsPicture()->playback(canvas);
|
D | distantclip.cpp | 32 SkPictureRecorder recorder; in onDraw() local 36 SkCanvas* rec = recorder.beginRecording(kExtents, kOffset + kExtents); in onDraw() 43 sk_sp<SkPicture> pict(recorder.finishRecordingAsPicture()); in onDraw() 46 pict->playback(recorder.beginRecording(pict->cullRect().width(), in onDraw() 48 sk_sp<SkPicture> pict2(recorder.finishRecordingAsPicture()); in onDraw()
|
D | pictureimagefilter.cpp | 41 SkPictureRecorder recorder; in make_picture() local 42 SkCanvas* canvas = recorder.beginRecording(100, 100); in make_picture() 47 return recorder.finishRecordingAsPicture(); in make_picture() 52 SkPictureRecorder recorder; in make_LCD_picture() local 53 SkCanvas* canvas = recorder.beginRecording(100, 100); in make_LCD_picture() 61 return recorder.finishRecordingAsPicture(); in make_LCD_picture()
|
D | pictureshadertile.cpp | 105 SkPictureRecorder recorder; in onOnceBeforeDraw() local 106 SkCanvas* pictureCanvas = recorder.beginRecording(kPictureSize, kPictureSize); in onOnceBeforeDraw() 108 sk_sp<SkPicture> picture(recorder.finishRecordingAsPicture()); in onOnceBeforeDraw() 111 pictureCanvas = recorder.beginRecording(SkRect::MakeXYWH(offset.x(), offset.y(), in onOnceBeforeDraw() 115 sk_sp<SkPicture> offsetPicture(recorder.finishRecordingAsPicture()); in onOnceBeforeDraw()
|
/third_party/skia/experimental/graphite/src/ |
D | DrawPass.cpp | 32 std::tuple<uint32_t, uint32_t> get_ids_from_paint(skgpu::Recorder* recorder, in get_ids_from_paint() argument 42 auto [ combo, uniformData] = ExtractCombo(recorder->uniformCache(), p); in get_ids_from_paint() 43 auto programInfo = recorder->programCache()->findOrCreateProgram(combo); in get_ids_from_paint() 134 skgpu::UniformData* lookup(skgpu::Recorder* recorder, uint32_t uniformID) { in lookup() argument 136 sk_sp<skgpu::UniformData> tmp = recorder->uniformCache()->lookup(uniformID); in lookup() 154 std::unique_ptr<DrawPass> DrawPass::Make(Recorder* recorder, in Make() argument 195 std::tie(programID, shadingUniformID) = get_ids_from_paint(recorder, in Make() 238 DrawBufferManager* bufferMgr = recorder->drawBufferManager(); in Make() 294 auto ud = lookup(recorder, key.shadingUniforms()); in Make()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ |
D | vktCustomInstancesDevices.cpp | 96 …e (Context& context, Move<VkInstance> instance, std::unique_ptr<vk::DebugReportRecorder>& recorder) in CustomInstance() argument 98 , m_recorder (recorder.release()) in CustomInstance() 168 …tance, const vk::VkAllocationCallbacks* pAllocator, std::unique_ptr<DebugReportRecorder>& recorder) in UncheckedInstance() argument 170 , m_recorder (recorder.release()) in UncheckedInstance() 320 std::unique_ptr<DebugReportRecorder> recorder; in createCustomInstanceFromInfo() local 338 recorder.reset(new DebugReportRecorder(printValidationErrors)); in createCustomInstanceFromInfo() 339 callbackInfo = recorder->makeCreateInfo(); in createCustomInstanceFromInfo() 344 return CustomInstance(context, vk::createInstance(vkp, &createInfo, pAllocator), recorder); in createCustomInstanceFromInfo() 357 std::unique_ptr<DebugReportRecorder> recorder; in createUncheckedInstance() local 376 recorder.reset(new DebugReportRecorder(printValidationErrors)); in createUncheckedInstance() [all …]
|
/third_party/skia/docs/examples/ |
D | Picture_uniqueID.cpp | 7 SkPictureRecorder recorder; in draw() local 8 recorder.beginRecording({0, 0, 0, 0}); in draw() 9 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture(); in draw()
|
D | Picture_playback.cpp | 7 SkPictureRecorder recorder; in draw() local 8 SkCanvas* pictureCanvas = recorder.beginRecording({0, 0, 256, 256}); in draw() 13 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture(); in draw()
|
D | Image_MakeFromGenerator.cpp | 7 SkPictureRecorder recorder; in draw() local 8 recorder.beginRecording(100, 100)->drawColor(SK_ColorRED); in draw() 9 auto picture = recorder.finishRecordingAsPicture(); in draw()
|
D | Canvas_drawPicture_2.cpp | 7 SkPictureRecorder recorder; in draw() local 8 SkCanvas* recordingCanvas = recorder.beginRecording(50, 50); in draw() 16 sk_sp<SkPicture> playback = recorder.finishRecordingAsPicture(); in draw()
|
D | Picture_cullRect.cpp | 7 SkPictureRecorder recorder; in draw() local 8 SkCanvas* pictureCanvas = recorder.beginRecording({64, 64, 192, 192}); in draw() 13 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture(); in draw()
|
D | Picture_AbortCallback_abort.cpp | 14 SkPictureRecorder recorder; in draw() local 15 SkCanvas* pictureCanvas = recorder.beginRecording({0, 0, 256, 256}); in draw() 20 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture(); in draw()
|
D | Canvas_drawPicture_4.cpp | 8 SkPictureRecorder recorder; in draw() local 9 SkCanvas* recordingCanvas = recorder.beginRecording(50, 50); in draw() 16 sk_sp<SkPicture> playback = recorder.finishRecordingAsPicture(); in draw()
|
D | Picture_approximateOpCount.cpp | 8 SkPictureRecorder recorder; 9 SkCanvas* pictureCanvas = recorder.beginRecording({0, 0, 256, 256}); 14 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();
|
D | Picture_approximateBytesUsed.cpp | 8 SkPictureRecorder recorder; 9 SkCanvas* pictureCanvas = recorder.beginRecording({0, 0, 256, 256}); 14 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();
|
D | Picture_serialize.cpp | 7 SkPictureRecorder recorder; in draw() local 8 SkCanvas* pictureCanvas = recorder.beginRecording({0, 0, 256, 256}); in draw() 13 sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture(); in draw()
|