| OLD | NEW |
| 1 // Copyright (c) 2008, Google Inc. | 1 // Copyright (c) 2008, Google Inc. |
| 2 // All rights reserved. | 2 // 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 26 matching lines...) Expand all Loading... |
| 37 #include "GraphicsContext.h" | 37 #include "GraphicsContext.h" |
| 38 #include "Logging.h" | 38 #include "Logging.h" |
| 39 #include "NativeImageSkia.h" | 39 #include "NativeImageSkia.h" |
| 40 #include "notImplemented.h" | 40 #include "notImplemented.h" |
| 41 #include "PlatformScrollBar.h" | 41 #include "PlatformScrollBar.h" |
| 42 #include "PlatformString.h" | 42 #include "PlatformString.h" |
| 43 | 43 |
| 44 #include "SkiaUtils.h" | 44 #include "SkiaUtils.h" |
| 45 #include "SkShader.h" | 45 #include "SkShader.h" |
| 46 | 46 |
| 47 #include "base/gfx/bitmap_header.h" | 47 #include "base/gfx/gdi_util.h" |
| 48 #include "base/gfx/image_operations.h" | 48 #include "base/gfx/image_operations.h" |
| 49 #include "base/gfx/native_theme.h" | 49 #include "base/gfx/native_theme.h" |
| 50 #include "base/gfx/platform_canvas_win.h" | 50 #include "base/gfx/platform_canvas_win.h" |
| 51 #include "webkit/glue/webkit_glue.h" | 51 #include "webkit/glue/webkit_glue.h" |
| 52 #include "webkit/glue/webkit_resources.h" | 52 #include "webkit/glue/webkit_resources.h" |
| 53 | 53 |
| 54 namespace WebCore { | 54 namespace WebCore { |
| 55 | 55 |
| 56 namespace { | 56 namespace { |
| 57 | 57 |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 if (srcRect.isEmpty() || dstRect.isEmpty()) | 318 if (srcRect.isEmpty() || dstRect.isEmpty()) |
| 319 return; // Nothing to draw. | 319 return; // Nothing to draw. |
| 320 | 320 |
| 321 ctxt->platformContext()->paintSkBitmap(*bm, enclosingIntRect(srcRect), | 321 ctxt->platformContext()->paintSkBitmap(*bm, enclosingIntRect(srcRect), |
| 322 enclosingIntRect(dstRect), WebCoreCompositeToSkiaComposite(compositeOp))
; | 322 enclosingIntRect(dstRect), WebCoreCompositeToSkiaComposite(compositeOp))
; |
| 323 | 323 |
| 324 startAnimation(); | 324 startAnimation(); |
| 325 } | 325 } |
| 326 | 326 |
| 327 } // namespace WebCore | 327 } // namespace WebCore |
| OLD | NEW |