Chromium Code Reviews| Index: gpu/blink/webgraphicscontext3d_impl.h |
| diff --git a/webkit/common/gpu/webgraphicscontext3d_impl.h b/gpu/blink/webgraphicscontext3d_impl.h |
| similarity index 97% |
| rename from webkit/common/gpu/webgraphicscontext3d_impl.h |
| rename to gpu/blink/webgraphicscontext3d_impl.h |
| index 3ed0dd97269b502022db5751f1d0417f7aa6e72e..e257257762f7e7283ad9948bb6da6647cf254d41 100644 |
| --- a/webkit/common/gpu/webgraphicscontext3d_impl.h |
| +++ b/gpu/blink/webgraphicscontext3d_impl.h |
| @@ -2,17 +2,31 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
| -#define WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
| +#ifndef GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
| +#define GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
| #include <string> |
| #include <vector> |
| #include "base/callback.h" |
| #include "base/memory/scoped_ptr.h" |
| +#include "gpu/blink/gpu_blink_export.h" |
| #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
| #include "third_party/WebKit/public/platform/WebString.h" |
| -#include "webkit/common/gpu/webkit_gpu_export.h" |
| + |
| +using blink::WGC3Dbitfield; |
|
jamesr
2014/12/01 20:11:09
you can't put 'using' statements in header files.
tfarina
2014/12/02 01:28:09
This wasn't me. It was bajones who did this:
https
|
| +using blink::WGC3Dboolean; |
| +using blink::WGC3Dbyte; |
| +using blink::WGC3Dchar; |
| +using blink::WGC3Dclampf; |
| +using blink::WGC3Denum; |
| +using blink::WGC3Dfloat; |
| +using blink::WGC3Dint; |
| +using blink::WGC3Dintptr; |
| +using blink::WGC3Dsizei; |
| +using blink::WGC3Dsizeiptr; |
| +using blink::WGC3Duint; |
| +using blink::WebGLId; |
| namespace gpu { |
| @@ -23,27 +37,11 @@ struct ContextCreationAttribHelper; |
| } |
| } |
| -using blink::WebGLId; |
| - |
| -using blink::WGC3Dbyte; |
| -using blink::WGC3Dchar; |
| -using blink::WGC3Denum; |
| -using blink::WGC3Dboolean; |
| -using blink::WGC3Dbitfield; |
| -using blink::WGC3Dint; |
| -using blink::WGC3Dsizei; |
| -using blink::WGC3Duint; |
| -using blink::WGC3Dfloat; |
| -using blink::WGC3Dclampf; |
| -using blink::WGC3Dintptr; |
| -using blink::WGC3Dsizeiptr; |
| - |
| -namespace webkit { |
| -namespace gpu { |
| +namespace gpu_blink { |
| class WebGraphicsContext3DErrorMessageCallback; |
| -class WEBKIT_GPU_EXPORT WebGraphicsContext3DImpl |
| +class GPU_BLINK_EXPORT WebGraphicsContext3DImpl |
| : public NON_EXPORTED_BASE(blink::WebGraphicsContext3D) { |
| public: |
| virtual ~WebGraphicsContext3DImpl(); |
| @@ -566,7 +564,7 @@ class WEBKIT_GPU_EXPORT WebGraphicsContext3DImpl |
| virtual GrGLInterface* createGrGLInterface(); |
| - ::gpu::gles2::GLES2Interface* GetGLInterface() { |
| + gpu::gles2::GLES2Interface* GetGLInterface() { |
| return gl_; |
| } |
| @@ -574,18 +572,18 @@ class WEBKIT_GPU_EXPORT WebGraphicsContext3DImpl |
| // requests. |
| static void ConvertAttributes( |
| const blink::WebGraphicsContext3D::Attributes& attributes, |
| - ::gpu::gles2::ContextCreationAttribHelper* output_attribs); |
| + gpu::gles2::ContextCreationAttribHelper* output_attribs); |
| protected: |
| friend class WebGraphicsContext3DErrorMessageCallback; |
| WebGraphicsContext3DImpl(); |
| - ::gpu::gles2::GLES2ImplementationErrorMessageCallback* |
| + gpu::gles2::GLES2ImplementationErrorMessageCallback* |
| getErrorMessageCallback(); |
| virtual void OnErrorMessage(const std::string& message, int id); |
| - void setGLInterface(::gpu::gles2::GLES2Interface* gl) { |
| + void setGLInterface(gpu::gles2::GLES2Interface* gl) { |
| gl_ = gl; |
| } |
| @@ -603,12 +601,11 @@ class WEBKIT_GPU_EXPORT WebGraphicsContext3DImpl |
| // Errors raised by synthesizeGLError(). |
| std::vector<WGC3Denum> synthetic_errors_; |
| - ::gpu::gles2::GLES2Interface* gl_; |
| + gpu::gles2::GLES2Interface* gl_; |
| bool lose_context_when_out_of_memory_; |
| uint32_t flush_id_; |
| }; |
| -} // namespace gpu |
| -} // namespace webkit |
| +} // namespace gpu_blink |
| -#endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
| +#endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |