| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2008, Google Inc. All rights reserved. | 2 * Copyright (c) 2008, 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 24 matching lines...) Expand all Loading... |
| 35 #include "SkRect.h" | 35 #include "SkRect.h" |
| 36 #include "SkSize.h" | 36 #include "SkSize.h" |
| 37 #include "SkXfermode.h" | 37 #include "SkXfermode.h" |
| 38 #include "platform/PlatformExport.h" | 38 #include "platform/PlatformExport.h" |
| 39 #include "platform/geometry/IntSize.h" | 39 #include "platform/geometry/IntSize.h" |
| 40 #include "platform/graphics/GraphicsTypes.h" | 40 #include "platform/graphics/GraphicsTypes.h" |
| 41 #include "wtf/Forward.h" | 41 #include "wtf/Forward.h" |
| 42 #include "wtf/PassRefPtr.h" | 42 #include "wtf/PassRefPtr.h" |
| 43 #include "wtf/RefCounted.h" | 43 #include "wtf/RefCounted.h" |
| 44 | 44 |
| 45 class SkMatrix; | |
| 46 class SkPaint; | |
| 47 | |
| 48 namespace blink { | 45 namespace blink { |
| 49 | 46 |
| 50 class FloatPoint; | 47 class FloatPoint; |
| 51 class FloatRect; | 48 class FloatRect; |
| 52 class FloatSize; | 49 class FloatSize; |
| 53 class GraphicsContext; | 50 class GraphicsContext; |
| 54 | 51 |
| 55 // This object is used as the "native image" in our port. When WebKit uses | 52 // This object is used as the "native image" in our port. When WebKit uses |
| 56 // PassNativeImagePtr / NativeImagePtr, it is a smart pointer to this type. | 53 // PassNativeImagePtr / NativeImagePtr, it is a smart pointer to this type. |
| 57 // It has an SkBitmap, and also stores a cached resized image. | 54 // It has an SkBitmap, and also stores a cached resized image. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // | 163 // |
| 167 // We also track scaling information and destination subset for the scaled | 164 // We also track scaling information and destination subset for the scaled |
| 168 // image. See comments for ImageResourceInfo. | 165 // image. See comments for ImageResourceInfo. |
| 169 mutable ImageResourceInfo m_cachedImageInfo; | 166 mutable ImageResourceInfo m_cachedImageInfo; |
| 170 mutable int m_resizeRequests; | 167 mutable int m_resizeRequests; |
| 171 }; | 168 }; |
| 172 | 169 |
| 173 } // namespace blink | 170 } // namespace blink |
| 174 | 171 |
| 175 #endif // NativeImageSkia_h | 172 #endif // NativeImageSkia_h |
| OLD | NEW |