Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/UnacceleratedStaticBitmapImage.h

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UnacceleratedStaticBitmapImage_h 5 #ifndef UnacceleratedStaticBitmapImage_h
6 #define UnacceleratedStaticBitmapImage_h 6 #define UnacceleratedStaticBitmapImage_h
7 7
8 #include "platform/graphics/StaticBitmapImage.h" 8 #include "platform/graphics/StaticBitmapImage.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class PLATFORM_EXPORT UnacceleratedStaticBitmapImage final 12 class PLATFORM_EXPORT UnacceleratedStaticBitmapImage final
13 : public StaticBitmapImage { 13 : public StaticBitmapImage {
14 public: 14 public:
15 ~UnacceleratedStaticBitmapImage() override; 15 ~UnacceleratedStaticBitmapImage() override;
16 static PassRefPtr<UnacceleratedStaticBitmapImage> create(sk_sp<SkImage>); 16 static PassRefPtr<UnacceleratedStaticBitmapImage> create(sk_sp<SkImage>);
17 17
18 bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override; 18 bool currentFrameKnownToBeOpaque(MetadataMode = UseCurrentMetadata) override;
19 IntSize size() const override; 19 IntSize size() const override;
20 sk_sp<SkImage> imageForCurrentFrame(const ColorBehavior&) override; 20 sk_sp<SkImage> imageForCurrentFrame(const ColorBehavior&) override;
21 21
22 void draw(SkCanvas*, 22 void draw(PaintCanvas*,
23 const SkPaint&, 23 const PaintFlags&,
24 const FloatRect& dstRect, 24 const FloatRect& dstRect,
25 const FloatRect& srcRect, 25 const FloatRect& srcRect,
26 RespectImageOrientationEnum, 26 RespectImageOrientationEnum,
27 ImageClampingMode, 27 ImageClampingMode,
28 const ColorBehavior&) override; 28 const ColorBehavior&) override;
29 29
30 private: 30 private:
31 UnacceleratedStaticBitmapImage(sk_sp<SkImage>); 31 UnacceleratedStaticBitmapImage(sk_sp<SkImage>);
32 sk_sp<SkImage> m_image; 32 sk_sp<SkImage> m_image;
33 }; 33 };
34 34
35 } // namespace blink 35 } // namespace blink
36 36
37 #endif 37 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698