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

Side by Side Diff: third_party/WebKit/public/platform/WebImage.h

Issue 2387113002: reflow comments in public/platform/ (Closed)
Patch Set: Created 4 years, 2 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 assign(image); 61 assign(image);
62 return *this; 62 return *this;
63 } 63 }
64 64
65 // Decodes the given image data. If the image has multiple frames, 65 // Decodes the given image data. If the image has multiple frames,
66 // then the frame whose size is desiredSize is returned. Otherwise, 66 // then the frame whose size is desiredSize is returned. Otherwise,
67 // the first frame is returned. 67 // the first frame is returned.
68 BLINK_PLATFORM_EXPORT static WebImage fromData(const WebData&, 68 BLINK_PLATFORM_EXPORT static WebImage fromData(const WebData&,
69 const WebSize& desiredSize); 69 const WebSize& desiredSize);
70 70
71 // Returns a list of all frames in the image. Only the first frame at each pix el 71 // Returns a list of all frames in the image. Only the first frame at each
72 // size will be returned. 72 // pixel size will be returned.
73 BLINK_PLATFORM_EXPORT static WebVector<WebImage> framesFromData( 73 BLINK_PLATFORM_EXPORT static WebVector<WebImage> framesFromData(
74 const WebData&); 74 const WebData&);
75 75
76 BLINK_PLATFORM_EXPORT void reset(); 76 BLINK_PLATFORM_EXPORT void reset();
77 BLINK_PLATFORM_EXPORT void assign(const WebImage&); 77 BLINK_PLATFORM_EXPORT void assign(const WebImage&);
78 78
79 BLINK_PLATFORM_EXPORT bool isNull() const; 79 BLINK_PLATFORM_EXPORT bool isNull() const;
80 BLINK_PLATFORM_EXPORT WebSize size() const; 80 BLINK_PLATFORM_EXPORT WebSize size() const;
81 81
82 #if INSIDE_BLINK 82 #if INSIDE_BLINK
(...skipping 11 matching lines...) Expand all
94 const SkBitmap& getSkBitmap() const { return m_bitmap; } 94 const SkBitmap& getSkBitmap() const { return m_bitmap; }
95 95
96 private: 96 private:
97 void init() {} 97 void init() {}
98 SkBitmap m_bitmap; 98 SkBitmap m_bitmap;
99 }; 99 };
100 100
101 } // namespace blink 101 } // namespace blink
102 102
103 #endif 103 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698