OLD | NEW |
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 void operator()(qcms_transform* transform) { | 53 void operator()(qcms_transform* transform) { |
54 if (transform) | 54 if (transform) |
55 qcms_transform_release(transform); | 55 qcms_transform_release(transform); |
56 } | 56 } |
57 }; | 57 }; |
58 | 58 |
59 using QCMSTransformUniquePtr = | 59 using QCMSTransformUniquePtr = |
60 std::unique_ptr<qcms_transform, QCMSTransformDeleter>; | 60 std::unique_ptr<qcms_transform, QCMSTransformDeleter>; |
61 #endif // USE(QCMSLIB) | 61 #endif // USE(QCMSLIB) |
62 | 62 |
63 // ImagePlanes can be used to decode color components into provided buffers inst
ead of using an ImageFrame. | 63 // ImagePlanes can be used to decode color components into provided buffers |
| 64 // instead of using an ImageFrame. |
64 class PLATFORM_EXPORT ImagePlanes final { | 65 class PLATFORM_EXPORT ImagePlanes final { |
65 USING_FAST_MALLOC(ImagePlanes); | 66 USING_FAST_MALLOC(ImagePlanes); |
66 WTF_MAKE_NONCOPYABLE(ImagePlanes); | 67 WTF_MAKE_NONCOPYABLE(ImagePlanes); |
67 | 68 |
68 public: | 69 public: |
69 ImagePlanes(); | 70 ImagePlanes(); |
70 ImagePlanes(void* planes[3], const size_t rowBytes[3]); | 71 ImagePlanes(void* planes[3], const size_t rowBytes[3]); |
71 | 72 |
72 void* plane(int); | 73 void* plane(int); |
73 size_t rowBytes(int) const; | 74 size_t rowBytes(int) const; |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 ImageFrame::ICCProfile m_colorProfile; | 354 ImageFrame::ICCProfile m_colorProfile; |
354 | 355 |
355 #if USE(QCMSLIB) | 356 #if USE(QCMSLIB) |
356 QCMSTransformUniquePtr m_sourceToOutputDeviceColorTransform; | 357 QCMSTransformUniquePtr m_sourceToOutputDeviceColorTransform; |
357 #endif | 358 #endif |
358 }; | 359 }; |
359 | 360 |
360 } // namespace blink | 361 } // namespace blink |
361 | 362 |
362 #endif | 363 #endif |
OLD | NEW |