• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2016 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 
7 // PathGL.h: Class definition for CHROMIUM_path_rendering path object for the
8 // GL backend.
9 
10 #ifndef LIBANGLE_RENDERER_GL_PATHIMPL_H_
11 #define LIBANGLE_RENDERER_GL_PATHIMPL_H_
12 
13 #include "libANGLE/renderer/PathImpl.h"
14 
15 namespace rx
16 {
17 
18 class FunctionsGL;
19 
20 class PathGL : public PathImpl
21 {
22   public:
23     PathGL(const FunctionsGL *functions, GLuint path);
24     ~PathGL() override;
25 
26     angle::Result setCommands(GLsizei numCommands,
27                               const GLubyte *commands,
28                               GLsizei numCoords,
29                               GLenum coordType,
30                               const void *coords) override;
31 
32     void setPathParameter(GLenum pname, GLfloat value) override;
33 
getPathID()34     GLuint getPathID() const { return mPathID; }
35 
36   private:
37     const FunctionsGL *mFunctions;
38 
39     GLuint mPathID;
40 };
41 
42 }  // namespace rx
43 
44 #endif  // LIBANGLE_RENDERER_GL_PATHIMPL_H_
45