| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 bool wantAlphaChannel, | 135 bool wantAlphaChannel, |
| 136 bool premultipliedAlpha, | 136 bool premultipliedAlpha, |
| 137 PreserveDrawingBuffer preserve, | 137 PreserveDrawingBuffer preserve, |
| 138 WebGLVersion webGLVersion, | 138 WebGLVersion webGLVersion, |
| 139 bool wantDepth, | 139 bool wantDepth, |
| 140 bool wantStencil, | 140 bool wantStencil, |
| 141 ChromiumImageUsage chromiumImageUsage) | 141 ChromiumImageUsage chromiumImageUsage) |
| 142 : m_client(client), | 142 : m_client(client), |
| 143 m_preserveDrawingBuffer(preserve), | 143 m_preserveDrawingBuffer(preserve), |
| 144 m_webGLVersion(webGLVersion), | 144 m_webGLVersion(webGLVersion), |
| 145 m_contextProvider(wrapUnique( | 145 m_contextProvider(WTF::wrapUnique( |
| 146 new WebGraphicsContext3DProviderWrapper(std::move(contextProvider)))), | 146 new WebGraphicsContext3DProviderWrapper(std::move(contextProvider)))), |
| 147 m_gl(this->contextProvider()->contextGL()), | 147 m_gl(this->contextProvider()->contextGL()), |
| 148 m_extensionsUtil(std::move(extensionsUtil)), | 148 m_extensionsUtil(std::move(extensionsUtil)), |
| 149 m_discardFramebufferSupported(discardFramebufferSupported), | 149 m_discardFramebufferSupported(discardFramebufferSupported), |
| 150 m_wantAlphaChannel(wantAlphaChannel), | 150 m_wantAlphaChannel(wantAlphaChannel), |
| 151 m_premultipliedAlpha(premultipliedAlpha), | 151 m_premultipliedAlpha(premultipliedAlpha), |
| 152 m_softwareRendering(this->contextProvider()->isSoftwareRendering()), | 152 m_softwareRendering(this->contextProvider()->isSoftwareRendering()), |
| 153 m_wantDepth(wantDepth), | 153 m_wantDepth(wantDepth), |
| 154 m_wantStencil(wantStencil), | 154 m_wantStencil(wantStencil), |
| 155 m_chromiumImageUsage(chromiumImageUsage) { | 155 m_chromiumImageUsage(chromiumImageUsage) { |
| (...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1262 if (m_pixelUnpackBufferBindingDirty) | 1262 if (m_pixelUnpackBufferBindingDirty) |
| 1263 client->DrawingBufferClientRestorePixelUnpackBufferBinding(); | 1263 client->DrawingBufferClientRestorePixelUnpackBufferBinding(); |
| 1264 } | 1264 } |
| 1265 | 1265 |
| 1266 bool DrawingBuffer::shouldUseChromiumImage() { | 1266 bool DrawingBuffer::shouldUseChromiumImage() { |
| 1267 return RuntimeEnabledFeatures::webGLImageChromiumEnabled() && | 1267 return RuntimeEnabledFeatures::webGLImageChromiumEnabled() && |
| 1268 m_chromiumImageUsage == AllowChromiumImage; | 1268 m_chromiumImageUsage == AllowChromiumImage; |
| 1269 } | 1269 } |
| 1270 | 1270 |
| 1271 } // namespace blink | 1271 } // namespace blink |
| OLD | NEW |