OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
5 * 2000 Simon Hausmann <hausmann@kde.org> | 5 * 2000 Simon Hausmann <hausmann@kde.org> |
6 * 2000 Stefan Schimanski <1Stein@gmx.de> | 6 * 2000 Stefan Schimanski <1Stein@gmx.de> |
7 * 2001 George Staikos <staikos@kde.org> | 7 * 2001 George Staikos <staikos@kde.org> |
8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> | 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> |
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 SkRect pictureBounds = SkRect::MakeIWH(paintingRect.width(), paintingRect.he
ight()); | 636 SkRect pictureBounds = SkRect::MakeIWH(paintingRect.width(), paintingRect.he
ight()); |
637 SkPictureBuilder pictureBuilder(pictureBounds); | 637 SkPictureBuilder pictureBuilder(pictureBounds); |
638 { | 638 { |
639 GraphicsContext& paintContext = pictureBuilder.context(); | 639 GraphicsContext& paintContext = pictureBuilder.context(); |
640 | 640 |
641 AffineTransform transform; | 641 AffineTransform transform; |
642 transform.scale(deviceScaleFactor, deviceScaleFactor); | 642 transform.scale(deviceScaleFactor, deviceScaleFactor); |
643 transform.translate(-paintingRect.x(), -paintingRect.y()); | 643 transform.translate(-paintingRect.x(), -paintingRect.y()); |
644 TransformRecorder transformRecorder(paintContext, displayItemClient, tra
nsform); | 644 TransformRecorder transformRecorder(paintContext, displayItemClient, tra
nsform); |
645 | 645 |
646 m_view->paintContents(&paintContext, globalPaintFlags, paintingRect); | 646 m_view->paintContents(paintContext, globalPaintFlags, paintingRect); |
647 | 647 |
648 } | 648 } |
649 RefPtr<const SkPicture> recording = pictureBuilder.endRecording(); | 649 RefPtr<const SkPicture> recording = pictureBuilder.endRecording(); |
650 RefPtr<SkImage> skImage = adoptRef(SkImage::NewFromPicture(recording.get(), | 650 RefPtr<SkImage> skImage = adoptRef(SkImage::NewFromPicture(recording.get(), |
651 SkISize::Make(paintingRect.width(), paintingRect.height()), nullptr, nul
lptr)); | 651 SkISize::Make(paintingRect.width(), paintingRect.height()), nullptr, nul
lptr)); |
652 RefPtr<Image> image = StaticBitmapImage::create(skImage.release()); | 652 RefPtr<Image> image = StaticBitmapImage::create(skImage.release()); |
653 | 653 |
654 return DragImage::create(image.get(), shouldRespectImageOrientation, deviceS
caleFactor, | 654 return DragImage::create(image.get(), shouldRespectImageOrientation, deviceS
caleFactor, |
655 InterpolationHigh, opacity); | 655 InterpolationHigh, opacity); |
656 } | 656 } |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 { | 924 { |
925 m_frame->disableNavigation(); | 925 m_frame->disableNavigation(); |
926 } | 926 } |
927 | 927 |
928 FrameNavigationDisabler::~FrameNavigationDisabler() | 928 FrameNavigationDisabler::~FrameNavigationDisabler() |
929 { | 929 { |
930 m_frame->enableNavigation(); | 930 m_frame->enableNavigation(); |
931 } | 931 } |
932 | 932 |
933 } // namespace blink | 933 } // namespace blink |
OLD | NEW |