| 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/client/gles2_interface.h" | 5 #include "gpu/command_buffer/client/gles2_interface.h" | 
| 6 #include "gpu/command_buffer/common/capabilities.h" | 6 #include "gpu/command_buffer/common/capabilities.h" | 
| 7 #include "public/platform/WebGraphicsContext3DProvider.h" | 7 #include "public/platform/WebGraphicsContext3DProvider.h" | 
| 8 #include "third_party/skia/include/gpu/GrContext.h" | 8 #include "third_party/skia/include/gpu/GrContext.h" | 
| 9 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" | 9 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" | 
| 10 #include "wtf/RefPtr.h" | 10 #include "wtf/RefPtr.h" | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
| 26   gpu::Capabilities getCapabilities() override { return gpu::Capabilities(); } | 26   gpu::Capabilities getCapabilities() override { return gpu::Capabilities(); } | 
| 27 | 27 | 
| 28   bool isSoftwareRendering() const override { return false; } | 28   bool isSoftwareRendering() const override { return false; } | 
| 29 | 29 | 
| 30   gpu::gles2::GLES2Interface* contextGL() override { return m_gl; } | 30   gpu::gles2::GLES2Interface* contextGL() override { return m_gl; } | 
| 31 | 31 | 
| 32   bool bindToCurrentThread() override { return false; } | 32   bool bindToCurrentThread() override { return false; } | 
| 33   void setLostContextCallback(const base::Closure&) override {} | 33   void setLostContextCallback(const base::Closure&) override {} | 
| 34   void setErrorMessageCallback( | 34   void setErrorMessageCallback( | 
| 35       const base::Callback<void(const char*, int32_t id)>&) {} | 35       const base::Callback<void(const char*, int32_t id)>&) {} | 
|  | 36   void signalQuery(uint32_t, const base::Closure&) override {} | 
| 36 | 37 | 
| 37  private: | 38  private: | 
| 38   gpu::gles2::GLES2Interface* m_gl; | 39   gpu::gles2::GLES2Interface* m_gl; | 
| 39   RefPtr<GrContext> m_grContext; | 40   RefPtr<GrContext> m_grContext; | 
| 40 }; | 41 }; | 
| 41 | 42 | 
| 42 }  // namespace blink | 43 }  // namespace blink | 
| OLD | NEW | 
|---|