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

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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 "platform/CheckedInt.h" 7 #include "platform/CheckedInt.h"
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/x86/WebGLImageConversionSSE.h" 10 #include "platform/graphics/cpu/x86/WebGLImageConversionSSE.h"
(...skipping 2288 matching lines...) Expand 10 before | Expand all | Expand 10 after
2299 unsigned packedSize; 2299 unsigned packedSize;
2300 // Output data is tightly packed (alignment == 1). 2300 // Output data is tightly packed (alignment == 1).
2301 PixelStoreParams params; 2301 PixelStoreParams params;
2302 params.alignment = 1; 2302 params.alignment = 1;
2303 if (computeImageSizeInBytes(format, type, width, height, 1, params, &packedS ize, 0, 0) != GL_NO_ERROR) 2303 if (computeImageSizeInBytes(format, type, width, height, 1, params, &packedS ize, 0, 0) != GL_NO_ERROR)
2304 return false; 2304 return false;
2305 data.resize(packedSize); 2305 data.resize(packedSize);
2306 2306
2307 if (!packPixels(reinterpret_cast<const uint8_t*>(pixels), sourceFormat, widt h, height, sourceUnpackAlignment, format, type, alphaOp, data.data(), flipY)) 2307 if (!packPixels(reinterpret_cast<const uint8_t*>(pixels), sourceFormat, widt h, height, sourceUnpackAlignment, format, type, alphaOp, data.data(), flipY))
2308 return false; 2308 return false;
2309 if (ImageObserver *observer = image->imageObserver()) 2309 if (ImageObserver *observer = image->getImageObserver())
2310 observer->didDraw(image); 2310 observer->didDraw(image);
2311 return true; 2311 return true;
2312 } 2312 }
2313 2313
2314 bool WebGLImageConversion::extractImageData( 2314 bool WebGLImageConversion::extractImageData(
2315 const uint8_t* imageData, 2315 const uint8_t* imageData,
2316 const IntSize& imageDataSize, 2316 const IntSize& imageDataSize,
2317 GLenum format, 2317 GLenum format,
2318 GLenum type, 2318 GLenum type,
2319 bool flipY, 2319 bool flipY,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
2403 } 2403 }
2404 2404
2405 FormatConverter converter(width, height, sourceData, destinationData, srcStr ide, dstStride); 2405 FormatConverter converter(width, height, sourceData, destinationData, srcStr ide, dstStride);
2406 converter.convert(sourceDataFormat, dstDataFormat, alphaOp); 2406 converter.convert(sourceDataFormat, dstDataFormat, alphaOp);
2407 if (!converter.Success()) 2407 if (!converter.Success())
2408 return false; 2408 return false;
2409 return true; 2409 return true;
2410 } 2410 }
2411 2411
2412 } // namespace blink 2412 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698