| 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 20 matching lines...) Expand all Loading... |
| 31 GrContext* grContext() override; | 31 GrContext* grContext() override; |
| 32 gpu::Capabilities getCapabilities() override; | 32 gpu::Capabilities getCapabilities() override; |
| 33 void setLostContextCallback(blink::WebClosure) override; | 33 void setLostContextCallback(blink::WebClosure) override; |
| 34 void setErrorMessageCallback( | 34 void setErrorMessageCallback( |
| 35 blink::WebFunction<void(const char*, int32_t)>) override; | 35 blink::WebFunction<void(const char*, int32_t)>) override; |
| 36 | 36 |
| 37 ContextProviderCommandBuffer* context_provider() const { | 37 ContextProviderCommandBuffer* context_provider() const { |
| 38 return provider_.get(); | 38 return provider_.get(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 bool bindToCurrentThread() override; |
| 42 |
| 41 private: | 43 private: |
| 42 scoped_refptr<ContextProviderCommandBuffer> provider_; | 44 scoped_refptr<ContextProviderCommandBuffer> provider_; |
| 43 }; | 45 }; |
| 44 | 46 |
| 45 } // namespace content | 47 } // namespace content |
| 46 | 48 |
| 47 #endif // CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_ | 49 #endif // CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_ |
| OLD | NEW |