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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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) 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #include "platform/graphics/ImageBufferSurface.h" 31 #include "platform/graphics/ImageBufferSurface.h"
32 32
33 #include "platform/graphics/GraphicsContext.h" 33 #include "platform/graphics/GraphicsContext.h"
34 #include "platform/graphics/ImageBuffer.h" 34 #include "platform/graphics/ImageBuffer.h"
35 #include "platform/graphics/StaticBitmapImage.h" 35 #include "platform/graphics/StaticBitmapImage.h"
36 #include "third_party/skia/include/core/SkColorSpace.h" 36 #include "third_party/skia/include/core/SkColorSpace.h"
37 #include "third_party/skia/include/core/SkImage.h" 37 #include "third_party/skia/include/core/SkImage.h"
38 38
39
40 namespace blink { 39 namespace blink {
41 40
42 ImageBufferSurface::ImageBufferSurface(const IntSize& size, 41 ImageBufferSurface::ImageBufferSurface(const IntSize& size,
43 OpacityMode opacityMode, 42 OpacityMode opacityMode,
44 sk_sp<SkColorSpace> colorSpace, 43 sk_sp<SkColorSpace> colorSpace,
45 SkColorType colorType) 44 SkColorType colorType)
46 : m_opacityMode(opacityMode), 45 : m_opacityMode(opacityMode),
47 m_size(size), 46 m_size(size),
48 m_colorSpace(colorSpace), 47 m_colorSpace(colorSpace),
49 m_colorType(colorType) { 48 m_colorType(colorType) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 88
90 bool ImageBufferSurface::writePixels(const SkImageInfo& origInfo, 89 bool ImageBufferSurface::writePixels(const SkImageInfo& origInfo,
91 const void* pixels, 90 const void* pixels,
92 size_t rowBytes, 91 size_t rowBytes,
93 int x, 92 int x,
94 int y) { 93 int y) {
95 return canvas()->writePixels(origInfo, pixels, rowBytes, x, y); 94 return canvas()->writePixels(origInfo, pixels, rowBytes, x, y);
96 } 95 }
97 96
98 } // namespace blink 97 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698