| Index: Source/core/frame/ImageBitmap.cpp
|
| diff --git a/Source/core/frame/ImageBitmap.cpp b/Source/core/frame/ImageBitmap.cpp
|
| index ee76ed53a8be351bbcad4a73ed051e29ffbdf3ef..6fd8aac9f1bba616b3adf5866658bd46391bd5f9 100644
|
| --- a/Source/core/frame/ImageBitmap.cpp
|
| +++ b/Source/core/frame/ImageBitmap.cpp
|
| @@ -11,8 +11,8 @@
|
| #include "platform/graphics/BitmapImage.h"
|
| #include "platform/graphics/GraphicsContext.h"
|
| #include "platform/graphics/ImageBuffer.h"
|
| -#include "platform/graphics/paint/DisplayItemListContextRecorder.h"
|
| #include "platform/graphics/paint/DrawingRecorder.h"
|
| +#include "platform/graphics/paint/SkPictureBuilder.h"
|
| #include "wtf/RefPtr.h"
|
|
|
| namespace blink {
|
| @@ -73,16 +73,8 @@ ImageBitmap::ImageBitmap(HTMLVideoElement* video, const IntRect& cropRect)
|
| if (!buffer)
|
| return;
|
|
|
| - {
|
| - DisplayItemListContextRecorder contextRecorder(*buffer->context());
|
| - GraphicsContext& paintContext = contextRecorder.context();
|
| -
|
| - DrawingRecorder recorder(paintContext, *buffer, DisplayItem::VideoBitmap, videoRect);
|
| - if (!recorder.canUseCachedDrawing()) {
|
| - paintContext.clip(dstRect);
|
| - paintContext.translate(-srcRect.x(), -srcRect.y());
|
| - }
|
| - }
|
| + buffer->canvas()->clipRect(dstRect);
|
| + buffer->canvas()->translate(-srcRect.x(), -srcRect.y());
|
|
|
| video->paintCurrentFrame(buffer->canvas(), videoRect, nullptr);
|
| m_bitmap = buffer->copyImage(DontCopyBackingStore);
|
|
|