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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "modules/webgl/WebGL2RenderingContextBase.h" 5 #include "modules/webgl/WebGL2RenderingContextBase.h"
6 6
7 #include "bindings/modules/v8/WebGLAny.h" 7 #include "bindings/modules/v8/WebGLAny.h"
8 #include "core/frame/ImageBitmap.h" 8 #include "core/frame/ImageBitmap.h"
9 #include "core/html/HTMLCanvasElement.h" 9 #include "core/html/HTMLCanvasElement.h"
10 #include "core/html/HTMLImageElement.h" 10 #include "core/html/HTMLImageElement.h"
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 || !validateTexFunc3DTarget("texSubImage3D", target) 1022 || !validateTexFunc3DTarget("texSubImage3D", target)
1023 || !validateTexFunc("texSubImage3D", TexSubImage, SourceHTMLVideoElement , target, level, 0, video->videoWidth(), video->videoHeight(), 1, 0, format, typ e, xoffset, yoffset, zoffset)) 1023 || !validateTexFunc("texSubImage3D", TexSubImage, SourceHTMLVideoElement , target, level, 0, video->videoWidth(), video->videoHeight(), 1, 0, format, typ e, xoffset, yoffset, zoffset))
1024 return; 1024 return;
1025 1025
1026 RefPtr<Image> image = videoFrameToImage(video); 1026 RefPtr<Image> image = videoFrameToImage(video);
1027 if (!image) 1027 if (!image)
1028 return; 1028 return;
1029 texSubImage3DImpl(target, level, xoffset, yoffset, zoffset, format, type, im age.get(), WebGLImageConversion::HtmlDomVideo, m_unpackFlipY, m_unpackPremultipl yAlpha); 1029 texSubImage3DImpl(target, level, xoffset, yoffset, zoffset, format, type, im age.get(), WebGLImageConversion::HtmlDomVideo, m_unpackFlipY, m_unpackPremultipl yAlpha);
1030 } 1030 }
1031 1031
1032 void WebGL2RenderingContextBase::texSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLenum format, GLenum type, PassRefPtrWi llBeRawPtr<ImageBitmap> bitmap, ExceptionState& exceptionState) 1032 void WebGL2RenderingContextBase::texSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLenum format, GLenum type, RawPtr<Image Bitmap> bitmap, ExceptionState& exceptionState)
1033 { 1033 {
1034 ASSERT(bitmap->bitmapImage()); 1034 ASSERT(bitmap->bitmapImage());
1035 if (isContextLost() || !validateImageBitmap("texSubImage3D", bitmap.get(), e xceptionState) 1035 if (isContextLost() || !validateImageBitmap("texSubImage3D", bitmap.get(), e xceptionState)
1036 || !validateTexFunc3DTarget("texSubImage3D", target) 1036 || !validateTexFunc3DTarget("texSubImage3D", target)
1037 || !validateTexFunc("texSubImage3D", TexSubImage, SourceImageBitmap, tar get, level, 0, bitmap->width(), bitmap->height(), 1, 0, format, type, xoffset, y offset, zoffset)) 1037 || !validateTexFunc("texSubImage3D", TexSubImage, SourceImageBitmap, tar get, level, 0, bitmap->width(), bitmap->height(), 1, 0, format, type, xoffset, y offset, zoffset))
1038 return; 1038 return;
1039 1039
1040 StaticBitmapImage* imageForRender = bitmap->bitmapImage(); 1040 StaticBitmapImage* imageForRender = bitmap->bitmapImage();
1041 texSubImage3DImpl(target, level, xoffset, yoffset, zoffset, format, type, im ageForRender, WebGLImageConversion::HtmlDomImage, m_unpackFlipY, m_unpackPremult iplyAlpha); 1041 texSubImage3DImpl(target, level, xoffset, yoffset, zoffset, format, type, im ageForRender, WebGLImageConversion::HtmlDomImage, m_unpackFlipY, m_unpackPremult iplyAlpha);
1042 } 1042 }
(...skipping 2459 matching lines...) Expand 10 before | Expand all | Expand 10 after
3502 params.alignment = m_unpackAlignment; 3502 params.alignment = m_unpackAlignment;
3503 params.rowLength = m_unpackRowLength; 3503 params.rowLength = m_unpackRowLength;
3504 params.imageHeight = m_unpackImageHeight; 3504 params.imageHeight = m_unpackImageHeight;
3505 params.skipPixels = m_unpackSkipPixels; 3505 params.skipPixels = m_unpackSkipPixels;
3506 params.skipRows = m_unpackSkipRows; 3506 params.skipRows = m_unpackSkipRows;
3507 params.skipImages = m_unpackSkipImages; 3507 params.skipImages = m_unpackSkipImages;
3508 return params; 3508 return params;
3509 } 3509 }
3510 3510
3511 } // namespace blink 3511 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698