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

Side by Side Diff: Source/modules/imagebitmap/ImageBitmapFactories.cpp

Issue 99103006: Moving GraphicsContext and dependencies from core to platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final patch - fixes Android Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | Source/platform/blink_platform.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, 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 25 matching lines...) Expand all
36 #include "core/fileapi/Blob.h" 36 #include "core/fileapi/Blob.h"
37 #include "core/html/HTMLCanvasElement.h" 37 #include "core/html/HTMLCanvasElement.h"
38 #include "core/html/HTMLImageElement.h" 38 #include "core/html/HTMLImageElement.h"
39 #include "core/html/HTMLVideoElement.h" 39 #include "core/html/HTMLVideoElement.h"
40 #include "core/html/ImageData.h" 40 #include "core/html/ImageData.h"
41 #include "core/html/canvas/CanvasRenderingContext2D.h" 41 #include "core/html/canvas/CanvasRenderingContext2D.h"
42 #include "core/frame/DOMWindow.h" 42 #include "core/frame/DOMWindow.h"
43 #include "core/frame/ImageBitmap.h" 43 #include "core/frame/ImageBitmap.h"
44 #include "core/workers/WorkerGlobalScope.h" 44 #include "core/workers/WorkerGlobalScope.h"
45 #include "platform/SharedBuffer.h" 45 #include "platform/SharedBuffer.h"
46 #include "core/platform/graphics/BitmapImage.h" 46 #include "platform/graphics/BitmapImage.h"
47 #include "core/platform/graphics/ImageSource.h" 47 #include "platform/graphics/ImageSource.h"
48 #include "core/platform/graphics/skia/NativeImageSkia.h" 48 #include "platform/graphics/skia/NativeImageSkia.h"
49 49
50 namespace WebCore { 50 namespace WebCore {
51 51
52 static LayoutSize sizeFor(HTMLImageElement* image) 52 static LayoutSize sizeFor(HTMLImageElement* image)
53 { 53 {
54 if (ImageResource* cachedImage = image->cachedImage()) 54 if (ImageResource* cachedImage = image->cachedImage())
55 return cachedImage->imageSizeForRenderer(image->renderer(), 1.0f); // FI XME: Not sure about this. 55 return cachedImage->imageSizeForRenderer(image->renderer(), 1.0f); // FI XME: Not sure about this.
56 return IntSize(); 56 return IntSize();
57 } 57 }
58 58
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 m_resolver->resolve(imageBitmap.release()); 349 m_resolver->resolve(imageBitmap.release());
350 m_factory->didFinishLoading(this); 350 m_factory->didFinishLoading(this);
351 } 351 }
352 352
353 void ImageBitmapFactories::ImageBitmapLoader::didFail(FileError::ErrorCode) 353 void ImageBitmapFactories::ImageBitmapLoader::didFail(FileError::ErrorCode)
354 { 354 {
355 rejectPromise(); 355 rejectPromise();
356 } 356 }
357 357
358 } // namespace WebCore 358 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | Source/platform/blink_platform.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698