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

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

Issue 519463002: Removing "using" declarations that import names in the C++ Standard library.(Source/platform/[geome… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebasing Created 6 years, 3 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
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #include "public/platform/WebExternalTextureMailbox.h" 52 #include "public/platform/WebExternalTextureMailbox.h"
53 #include "public/platform/WebGraphicsContext3D.h" 53 #include "public/platform/WebGraphicsContext3D.h"
54 #include "public/platform/WebGraphicsContext3DProvider.h" 54 #include "public/platform/WebGraphicsContext3DProvider.h"
55 #include "third_party/skia/include/core/SkPicture.h" 55 #include "third_party/skia/include/core/SkPicture.h"
56 #include "third_party/skia/include/effects/SkTableColorFilter.h" 56 #include "third_party/skia/include/effects/SkTableColorFilter.h"
57 #include "wtf/MathExtras.h" 57 #include "wtf/MathExtras.h"
58 #include "wtf/Vector.h" 58 #include "wtf/Vector.h"
59 #include "wtf/text/Base64.h" 59 #include "wtf/text/Base64.h"
60 #include "wtf/text/WTFString.h" 60 #include "wtf/text/WTFString.h"
61 61
62 using namespace std;
63
64 namespace blink { 62 namespace blink {
65 63
66 PassOwnPtr<ImageBuffer> ImageBuffer::create(PassOwnPtr<ImageBufferSurface> surfa ce) 64 PassOwnPtr<ImageBuffer> ImageBuffer::create(PassOwnPtr<ImageBufferSurface> surfa ce)
67 { 65 {
68 if (!surface->isValid()) 66 if (!surface->isValid())
69 return nullptr; 67 return nullptr;
70 return adoptPtr(new ImageBuffer(surface)); 68 return adoptPtr(new ImageBuffer(surface));
71 } 69 }
72 70
73 PassOwnPtr<ImageBuffer> ImageBuffer::create(const IntSize& size, OpacityMode opa cityMode) 71 PassOwnPtr<ImageBuffer> ImageBuffer::create(const IntSize& size, OpacityMode opa cityMode)
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 if (!encodeImage(imageData, mimeType, quality, &encodedImage)) 429 if (!encodeImage(imageData, mimeType, quality, &encodedImage))
432 return "data:,"; 430 return "data:,";
433 431
434 Vector<char> base64Data; 432 Vector<char> base64Data;
435 base64Encode(encodedImage, base64Data); 433 base64Encode(encodedImage, base64Data);
436 434
437 return "data:" + mimeType + ";base64," + base64Data; 435 return "data:" + mimeType + ";base64," + base64Data;
438 } 436 }
439 437
440 } // namespace blink 438 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsContext.cpp ('k') | Source/platform/graphics/filters/FEDropShadow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698