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

Side by Side Diff: Source/core/platform/graphics/ImageBuffer.cpp

Issue 25494003: Move geometry classes from core/platform/graphics to platform/geometry (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 months 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2008, Google Inc. All rights reserved. 2 * Copyright (c) 2008, Google Inc. All rights reserved.
3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are 7 * modification, are permitted provided that the following conditions are
8 * met: 8 * met:
9 * 9 *
10 * * Redistributions of source code must retain the above copyright 10 * * Redistributions of source code must retain the above copyright
(...skipping 21 matching lines...) Expand all
32 32
33 #include "config.h" 33 #include "config.h"
34 #include "core/platform/graphics/ImageBuffer.h" 34 #include "core/platform/graphics/ImageBuffer.h"
35 35
36 #include "core/html/ImageData.h" 36 #include "core/html/ImageData.h"
37 #include "core/platform/MIMETypeRegistry.h" 37 #include "core/platform/MIMETypeRegistry.h"
38 #include "core/platform/graphics/BitmapImage.h" 38 #include "core/platform/graphics/BitmapImage.h"
39 #include "core/platform/graphics/Extensions3D.h" 39 #include "core/platform/graphics/Extensions3D.h"
40 #include "core/platform/graphics/GraphicsContext.h" 40 #include "core/platform/graphics/GraphicsContext.h"
41 #include "core/platform/graphics/GraphicsContext3D.h" 41 #include "core/platform/graphics/GraphicsContext3D.h"
42 #include "core/platform/graphics/IntRect.h"
43 #include "core/platform/graphics/chromium/Canvas2DLayerBridge.h" 42 #include "core/platform/graphics/chromium/Canvas2DLayerBridge.h"
44 #include "core/platform/graphics/gpu/SharedGraphicsContext3D.h" 43 #include "core/platform/graphics/gpu/SharedGraphicsContext3D.h"
45 #include "core/platform/graphics/skia/NativeImageSkia.h" 44 #include "core/platform/graphics/skia/NativeImageSkia.h"
46 #include "core/platform/graphics/skia/SkiaUtils.h" 45 #include "core/platform/graphics/skia/SkiaUtils.h"
47 #include "core/platform/image-encoders/skia/JPEGImageEncoder.h" 46 #include "core/platform/image-encoders/skia/JPEGImageEncoder.h"
48 #include "core/platform/image-encoders/skia/PNGImageEncoder.h" 47 #include "core/platform/image-encoders/skia/PNGImageEncoder.h"
49 #include "core/platform/image-encoders/skia/WEBPImageEncoder.h" 48 #include "core/platform/image-encoders/skia/WEBPImageEncoder.h"
49 #include "platform/geometry/IntRect.h"
50 #include "public/platform/Platform.h" 50 #include "public/platform/Platform.h"
51 #include "skia/ext/platform_canvas.h" 51 #include "skia/ext/platform_canvas.h"
52 #include "third_party/skia/include/core/SkBitmapDevice.h" 52 #include "third_party/skia/include/core/SkBitmapDevice.h"
53 #include "third_party/skia/include/core/SkColorFilter.h" 53 #include "third_party/skia/include/core/SkColorFilter.h"
54 #include "third_party/skia/include/core/SkColorPriv.h" 54 #include "third_party/skia/include/core/SkColorPriv.h"
55 #include "third_party/skia/include/core/SkSurface.h" 55 #include "third_party/skia/include/core/SkSurface.h"
56 #include "third_party/skia/include/effects/SkTableColorFilter.h" 56 #include "third_party/skia/include/effects/SkTableColorFilter.h"
57 #include "third_party/skia/include/gpu/GrContext.h" 57 #include "third_party/skia/include/gpu/GrContext.h"
58 #include "third_party/skia/include/gpu/SkGpuDevice.h" 58 #include "third_party/skia/include/gpu/SkGpuDevice.h"
59 #include "wtf/MathExtras.h" 59 #include "wtf/MathExtras.h"
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 if (!encodeImage(imageData, mimeType, quality, &encodedImage)) 492 if (!encodeImage(imageData, mimeType, quality, &encodedImage))
493 return "data:,"; 493 return "data:,";
494 494
495 Vector<char> base64Data; 495 Vector<char> base64Data;
496 base64Encode(encodedImage, base64Data); 496 base64Encode(encodedImage, base64Data);
497 497
498 return "data:" + mimeType + ";base64," + base64Data; 498 return "data:" + mimeType + ";base64," + base64Data;
499 } 499 }
500 500
501 } // namespace WebCore 501 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/ImageBuffer.h ('k') | Source/core/platform/graphics/ImageOrientation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698