| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_ |
| 6 #define CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_ | 6 #define CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 // WebGraphicsContext3DProvider implementation. | 30 // WebGraphicsContext3DProvider implementation. |
| 31 bool bindToCurrentThread() override; | 31 bool bindToCurrentThread() override; |
| 32 gpu::gles2::GLES2Interface* contextGL() override; | 32 gpu::gles2::GLES2Interface* contextGL() override; |
| 33 GrContext* grContext() override; | 33 GrContext* grContext() override; |
| 34 gpu::Capabilities getCapabilities() override; | 34 gpu::Capabilities getCapabilities() override; |
| 35 bool isSoftwareRendering() const override; | 35 bool isSoftwareRendering() const override; |
| 36 void setLostContextCallback(const base::Closure&) override; | 36 void setLostContextCallback(const base::Closure&) override; |
| 37 void setErrorMessageCallback( | 37 void setErrorMessageCallback( |
| 38 const base::Callback<void(const char*, int32_t)>&) override; | 38 const base::Callback<void(const char*, int32_t)>&) override; |
| 39 void signalQuery(uint32_t, const base::Closure&) override; |
| 39 | 40 |
| 40 ContextProviderCommandBuffer* context_provider() const { | 41 ContextProviderCommandBuffer* context_provider() const { |
| 41 return provider_.get(); | 42 return provider_.get(); |
| 42 } | 43 } |
| 43 | 44 |
| 44 private: | 45 private: |
| 45 scoped_refptr<ContextProviderCommandBuffer> provider_; | 46 scoped_refptr<ContextProviderCommandBuffer> provider_; |
| 46 const bool software_rendering_; | 47 const bool software_rendering_; |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 } // namespace content | 50 } // namespace content |
| 50 | 51 |
| 51 #endif // CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_ | 52 #endif // CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_ |
| OLD | NEW |