| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "gpu/command_buffer/common/capabilities.h" | 5 #include "gpu/command_buffer/common/capabilities.h" |
| 6 #include "platform/RuntimeEnabledFeatures.h" | 6 #include "platform/RuntimeEnabledFeatures.h" |
| 7 #include "platform/graphics/gpu/DrawingBuffer.h" | 7 #include "platform/graphics/gpu/DrawingBuffer.h" |
| 8 #include "platform/graphics/gpu/Extensions3DUtil.h" | 8 #include "platform/graphics/gpu/Extensions3DUtil.h" |
| 9 #include "public/platform/WebGraphicsContext3DProvider.h" | 9 #include "public/platform/WebGraphicsContext3DProvider.h" |
| 10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 memset(mailbox, m_currentMailboxByte, GL_MAILBOX_SIZE_CHROMIUM); | 214 memset(mailbox, m_currentMailboxByte, GL_MAILBOX_SIZE_CHROMIUM); |
| 215 } | 215 } |
| 216 | 216 |
| 217 void ProduceTextureDirectCHROMIUM(GLuint texture, | 217 void ProduceTextureDirectCHROMIUM(GLuint texture, |
| 218 GLenum target, | 218 GLenum target, |
| 219 const GLbyte* mailbox) override { | 219 const GLbyte* mailbox) override { |
| 220 ASSERT_EQ(target, drawingBufferTextureTarget()); | 220 ASSERT_EQ(target, drawingBufferTextureTarget()); |
| 221 | 221 |
| 222 if (!m_createImageChromiumFail) { | 222 if (!m_createImageChromiumFail) { |
| 223 ASSERT_TRUE(m_textureSizes.contains(texture)); | 223 ASSERT_TRUE(m_textureSizes.contains(texture)); |
| 224 m_mostRecentlyProducedSize = m_textureSizes.get(texture); | 224 m_mostRecentlyProducedSize = m_textureSizes.at(texture); |
| 225 } | 225 } |
| 226 } | 226 } |
| 227 | 227 |
| 228 void TexImage2D(GLenum target, | 228 void TexImage2D(GLenum target, |
| 229 GLint level, | 229 GLint level, |
| 230 GLint internalformat, | 230 GLint internalformat, |
| 231 GLsizei width, | 231 GLsizei width, |
| 232 GLsizei height, | 232 GLsizei height, |
| 233 GLint border, | 233 GLint border, |
| 234 GLenum format, | 234 GLenum format, |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 GLbyte m_currentMailboxByte = 0; | 392 GLbyte m_currentMailboxByte = 0; |
| 393 IntSize m_mostRecentlyProducedSize; | 393 IntSize m_mostRecentlyProducedSize; |
| 394 bool m_createImageChromiumFail = false; | 394 bool m_createImageChromiumFail = false; |
| 395 GLuint m_currentImageId = 1; | 395 GLuint m_currentImageId = 1; |
| 396 HashMap<GLuint, IntSize> m_textureSizes; | 396 HashMap<GLuint, IntSize> m_textureSizes; |
| 397 HashMap<GLuint, IntSize> m_imageSizes; | 397 HashMap<GLuint, IntSize> m_imageSizes; |
| 398 HashMap<GLuint, GLuint> m_imageToTextureMap; | 398 HashMap<GLuint, GLuint> m_imageToTextureMap; |
| 399 }; | 399 }; |
| 400 | 400 |
| 401 } // blink | 401 } // blink |
| OLD | NEW |