| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 gpu::gles2::GLES2Interface* contextGL() override { return m_gl.get(); } | 73 gpu::gles2::GLES2Interface* contextGL() override { return m_gl.get(); } |
| 74 bool isSoftwareRendering() const override { return false; } | 74 bool isSoftwareRendering() const override { return false; } |
| 75 | 75 |
| 76 // Not used by WebGL code. | 76 // Not used by WebGL code. |
| 77 GrContext* grContext() override { return nullptr; } | 77 GrContext* grContext() override { return nullptr; } |
| 78 bool bindToCurrentThread() override { return false; } | 78 bool bindToCurrentThread() override { return false; } |
| 79 gpu::Capabilities getCapabilities() override { return gpu::Capabilities(); } | 79 gpu::Capabilities getCapabilities() override { return gpu::Capabilities(); } |
| 80 void setLostContextCallback(const base::Closure&) {} | 80 void setLostContextCallback(const base::Closure&) {} |
| 81 void setErrorMessageCallback( | 81 void setErrorMessageCallback( |
| 82 const base::Callback<void(const char*, int32_t id)>&) {} | 82 const base::Callback<void(const char*, int32_t id)>&) {} |
| 83 void signalQuery(uint32_t, const base::Closure&) override {} |
| 83 | 84 |
| 84 private: | 85 private: |
| 85 std::unique_ptr<gpu::gles2::GLES2Interface> m_gl; | 86 std::unique_ptr<gpu::gles2::GLES2Interface> m_gl; |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 // The target to use when binding a texture to a Chromium image. | 89 // The target to use when binding a texture to a Chromium image. |
| 89 GLenum imageCHROMIUMTextureTarget() { | 90 GLenum imageCHROMIUMTextureTarget() { |
| 90 #if OS(MACOSX) | 91 #if OS(MACOSX) |
| 91 return GC3D_TEXTURE_RECTANGLE_ARB; | 92 return GC3D_TEXTURE_RECTANGLE_ARB; |
| 92 #else | 93 #else |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 GLbyte m_currentMailboxByte = 0; | 234 GLbyte m_currentMailboxByte = 0; |
| 234 IntSize m_mostRecentlyProducedSize; | 235 IntSize m_mostRecentlyProducedSize; |
| 235 bool m_createImageChromiumFail = false; | 236 bool m_createImageChromiumFail = false; |
| 236 GLuint m_currentImageId = 1; | 237 GLuint m_currentImageId = 1; |
| 237 HashMap<GLuint, IntSize> m_textureSizes; | 238 HashMap<GLuint, IntSize> m_textureSizes; |
| 238 HashMap<GLuint, IntSize> m_imageSizes; | 239 HashMap<GLuint, IntSize> m_imageSizes; |
| 239 HashMap<GLuint, GLuint> m_imageToTextureMap; | 240 HashMap<GLuint, GLuint> m_imageToTextureMap; |
| 240 }; | 241 }; |
| 241 | 242 |
| 242 } // blink | 243 } // blink |
| OLD | NEW |