gl_bindings_skia_cmd_buffer.h 918 B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2013 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef GPU_SKIA_BINDINGS_GL_BINDINGS_SKIA_CMD_BUFFER_H_
  5. #define GPU_SKIA_BINDINGS_GL_BINDINGS_SKIA_CMD_BUFFER_H_
  6. #include "third_party/skia/include/core/SkRefCnt.h"
  7. #include "third_party/skia/include/core/SkTypes.h"
  8. struct GrGLInterface;
  9. namespace gpu {
  10. class ContextSupport;
  11. namespace gles2 {
  12. class GLES2Interface;
  13. } // namespace gles2
  14. } // namespace gpu
  15. namespace skia_bindings {
  16. // The GPU back-end for skia requires pointers to GL functions. This function
  17. // initializes bindings for skia-gpu to a GLES2Interface object.
  18. sk_sp<GrGLInterface> CreateGLES2InterfaceBindings(
  19. gpu::gles2::GLES2Interface*,
  20. gpu::ContextSupport* context_support);
  21. } // namespace skia_bindings
  22. #endif // GPU_SKIA_BINDINGS_GL_BINDINGS_SKIA_CMD_BUFFER_H_