Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
|
eseidel
2015/05/29 22:13:51
Don't change existing copyrights plz. :)
jackson
2015/05/29 22:54:33
Good catch, I meant to put this in a different fil
| |
| 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 3 // found in the LICENSE file. |
| 4 * | 4 |
| 5 * Redistribution and use in source and binary forms, with or without | |
| 6 * modification, are permitted provided that the following conditions | |
| 7 * are met: | |
| 8 * 1. Redistributions of source code must retain the above copyright | |
| 9 * notice, this list of conditions and the following disclaimer. | |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | |
| 11 * notice, this list of conditions and the following disclaimer in the | |
| 12 * documentation and/or other materials provided with the distribution. | |
| 13 * | |
| 14 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY | |
| 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
| 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | |
| 17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR | |
| 18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | |
| 19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |
| 20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | |
| 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | |
| 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
| 25 */ | |
| 26 | 5 |
| 27 #ifndef SKY_ENGINE_PLATFORM_GRAPHICS_IMAGE_H_ | 6 #ifndef SKY_ENGINE_PLATFORM_GRAPHICS_IMAGE_H_ |
| 28 #define SKY_ENGINE_PLATFORM_GRAPHICS_IMAGE_H_ | 7 #define SKY_ENGINE_PLATFORM_GRAPHICS_IMAGE_H_ |
| 29 | 8 |
| 30 #include "sky/engine/platform/PlatformExport.h" | 9 #include "sky/engine/platform/PlatformExport.h" |
| 31 #include "sky/engine/platform/geometry/IntRect.h" | 10 #include "sky/engine/platform/geometry/IntRect.h" |
| 32 #include "sky/engine/platform/graphics/Color.h" | 11 #include "sky/engine/platform/graphics/Color.h" |
| 33 #include "sky/engine/platform/graphics/GraphicsTypes.h" | 12 #include "sky/engine/platform/graphics/GraphicsTypes.h" |
| 34 #include "sky/engine/platform/graphics/ImageOrientation.h" | 13 #include "sky/engine/platform/graphics/ImageOrientation.h" |
| 35 #include "sky/engine/platform/graphics/skia/NativeImageSkia.h" | 14 #include "sky/engine/platform/graphics/skia/NativeImageSkia.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 136 RefPtr<SharedBuffer> m_encodedImageData; | 115 RefPtr<SharedBuffer> m_encodedImageData; |
| 137 ImageObserver* m_imageObserver; | 116 ImageObserver* m_imageObserver; |
| 138 }; | 117 }; |
| 139 | 118 |
| 140 #define DEFINE_IMAGE_TYPE_CASTS(typeName) \ | 119 #define DEFINE_IMAGE_TYPE_CASTS(typeName) \ |
| 141 DEFINE_TYPE_CASTS(typeName, Image, image, image->is##typeName(), image.is##t ypeName()) | 120 DEFINE_TYPE_CASTS(typeName, Image, image, image->is##typeName(), image.is##t ypeName()) |
| 142 | 121 |
| 143 } // namespace blink | 122 } // namespace blink |
| 144 | 123 |
| 145 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_IMAGE_H_ | 124 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_IMAGE_H_ |
| OLD | NEW |