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

Side by Side Diff: Source/platform/image-decoders/ImageDecoder.h

Issue 480093003: Follow up on previous cl (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #endif 47 #endif
48 #endif 48 #endif
49 49
50 namespace blink { 50 namespace blink {
51 51
52 // ImagePlanes can be used to decode color components into provided buffers inst ead of using an ImageFrame. 52 // ImagePlanes can be used to decode color components into provided buffers inst ead of using an ImageFrame.
53 class PLATFORM_EXPORT ImagePlanes { 53 class PLATFORM_EXPORT ImagePlanes {
54 public: 54 public:
55 ImagePlanes(); 55 ImagePlanes();
56 56
57 void set(void* planes[3], size_t rowBytes[3]); 57 void setPlanes(void* planes[3], size_t rowBytes[3]);
58 void* plane(int); 58 void* plane(int);
59 size_t rowBytes(int) const; 59 size_t rowBytes(int) const;
60 60
61 private: 61 private:
62 void* m_planes[3]; 62 void* m_planes[3];
63 size_t m_rowBytes[3]; 63 size_t m_rowBytes[3];
64 }; 64 };
65 65
66 // ImageDecoder is a base for all format-specific decoders 66 // ImageDecoder is a base for all format-specific decoders
67 // (e.g. JPEGImageDecoder). This base manages the ImageFrame cache. 67 // (e.g. JPEGImageDecoder). This base manages the ImageFrame cache.
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 318
319 IntSize m_size; 319 IntSize m_size;
320 bool m_sizeAvailable; 320 bool m_sizeAvailable;
321 bool m_isAllDataReceived; 321 bool m_isAllDataReceived;
322 bool m_failed; 322 bool m_failed;
323 }; 323 };
324 324
325 } // namespace blink 325 } // namespace blink
326 326
327 #endif 327 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698