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

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

Issue 2556723003: Merge color options into ColorBehavior (Closed)
Patch Set: Feedback Created 4 years 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 class PLATFORM_EXPORT DeferredImageDecoder final { 47 class PLATFORM_EXPORT DeferredImageDecoder final {
48 WTF_MAKE_NONCOPYABLE(DeferredImageDecoder); 48 WTF_MAKE_NONCOPYABLE(DeferredImageDecoder);
49 USING_FAST_MALLOC(DeferredImageDecoder); 49 USING_FAST_MALLOC(DeferredImageDecoder);
50 50
51 public: 51 public:
52 static std::unique_ptr<DeferredImageDecoder> create( 52 static std::unique_ptr<DeferredImageDecoder> create(
53 PassRefPtr<SharedBuffer> data, 53 PassRefPtr<SharedBuffer> data,
54 bool dataComplete, 54 bool dataComplete,
55 ImageDecoder::AlphaOption, 55 ImageDecoder::AlphaOption,
56 ImageDecoder::ColorSpaceOption, 56 const ColorBehavior&);
57 sk_sp<SkColorSpace> targetColorSpace);
58 57
59 static std::unique_ptr<DeferredImageDecoder> createForTesting( 58 static std::unique_ptr<DeferredImageDecoder> createForTesting(
60 std::unique_ptr<ImageDecoder>); 59 std::unique_ptr<ImageDecoder>);
61 60
62 ~DeferredImageDecoder(); 61 ~DeferredImageDecoder();
63 62
64 String filenameExtension() const; 63 String filenameExtension() const;
65 64
66 sk_sp<SkImage> createFrameAtIndex(size_t); 65 sk_sp<SkImage> createFrameAtIndex(size_t);
67 66
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 IntPoint m_hotSpot; 112 IntPoint m_hotSpot;
114 113
115 // Caches frame state information. 114 // Caches frame state information.
116 Vector<DeferredFrameData> m_frameData; 115 Vector<DeferredFrameData> m_frameData;
117 RefPtr<ImageFrameGenerator> m_frameGenerator; 116 RefPtr<ImageFrameGenerator> m_frameGenerator;
118 }; 117 };
119 118
120 } // namespace blink 119 } // namespace blink
121 120
122 #endif 121 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698