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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/graphics/gpu/WebGLImageConversion.h" 5 #include "platform/graphics/gpu/WebGLImageConversion.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include "platform/graphics/ImageObserver.h" 8 #include "platform/graphics/ImageObserver.h"
9 #include "platform/graphics/cpu/arm/WebGLImageConversionNEON.h" 9 #include "platform/graphics/cpu/arm/WebGLImageConversionNEON.h"
10 #include "platform/graphics/cpu/mips/WebGLImageConversionMSA.h" 10 #include "platform/graphics/cpu/mips/WebGLImageConversionMSA.h"
(...skipping 2480 matching lines...) Expand 10 before | Expand all | Expand 10 after
2491 unpack<SrcFormat>(srcRowStart, dstRowStart, m_srcSubRectangle.width()); 2491 unpack<SrcFormat>(srcRowStart, dstRowStart, m_srcSubRectangle.width());
2492 srcRowStart += srcStrideInElements; 2492 srcRowStart += srcStrideInElements;
2493 dstRowStart += dstStrideInElements; 2493 dstRowStart += dstStrideInElements;
2494 } 2494 }
2495 srcRowStart += srcStrideInElements * 2495 srcRowStart += srcStrideInElements *
2496 (m_unpackImageHeight - m_srcSubRectangle.height()); 2496 (m_unpackImageHeight - m_srcSubRectangle.height());
2497 } 2497 }
2498 } else { 2498 } else {
2499 for (int d = 0; d < m_depth; ++d) { 2499 for (int d = 0; d < m_depth; ++d) {
2500 for (int i = 0; i < m_srcSubRectangle.height(); ++i) { 2500 for (int i = 0; i < m_srcSubRectangle.height(); ++i) {
2501 unpack<SrcFormat>(srcRowStart, reinterpret_cast<IntermType*>( 2501 unpack<SrcFormat>(
2502 m_unpackedIntermediateSrcData.get()), 2502 srcRowStart,
2503 m_srcSubRectangle.width()); 2503 reinterpret_cast<IntermType*>(m_unpackedIntermediateSrcData.get()),
2504 m_srcSubRectangle.width());
2504 pack<DstFormat, alphaOp>( 2505 pack<DstFormat, alphaOp>(
2505 reinterpret_cast<IntermType*>(m_unpackedIntermediateSrcData.get()), 2506 reinterpret_cast<IntermType*>(m_unpackedIntermediateSrcData.get()),
2506 dstRowStart, m_srcSubRectangle.width()); 2507 dstRowStart, m_srcSubRectangle.width());
2507 srcRowStart += srcStrideInElements; 2508 srcRowStart += srcStrideInElements;
2508 dstRowStart += dstStrideInElements; 2509 dstRowStart += dstStrideInElements;
2509 } 2510 }
2510 srcRowStart += srcStrideInElements * 2511 srcRowStart += srcStrideInElements *
2511 (m_unpackImageHeight - m_srcSubRectangle.height()); 2512 (m_unpackImageHeight - m_srcSubRectangle.height());
2512 } 2513 }
2513 } 2514 }
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
3171 pack<WebGLImageConversion::DataFormatRGB565, 3172 pack<WebGLImageConversion::DataFormatRGB565,
3172 WebGLImageConversion::AlphaDoNothing>(srcRowStart, dstRowStart, 3173 WebGLImageConversion::AlphaDoNothing>(srcRowStart, dstRowStart,
3173 pixelsPerRow); 3174 pixelsPerRow);
3174 } break; 3175 } break;
3175 default: 3176 default:
3176 break; 3177 break;
3177 } 3178 }
3178 } 3179 }
3179 3180
3180 } // namespace blink 3181 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698