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 // ContextImpl:
7 // Implementation-specific functionality associated with a GL Context.
8 //
9
10 #include "libANGLE/renderer/ContextImpl.h"
11
12 namespace rx
13 {
14
ContextImpl(const gl::ContextState & state)15 ContextImpl::ContextImpl(const gl::ContextState &state)
16 : mState(state), mMemoryProgramCache(nullptr)
17 {
18 }
19
~ContextImpl()20 ContextImpl::~ContextImpl()
21 {
22 }
23
stencilFillPath(const gl::Path * path,GLenum fillMode,GLuint mask)24 void ContextImpl::stencilFillPath(const gl::Path *path, GLenum fillMode, GLuint mask)
25 {
26 UNREACHABLE();
27 }
28
stencilStrokePath(const gl::Path * path,GLint reference,GLuint mask)29 void ContextImpl::stencilStrokePath(const gl::Path *path, GLint reference, GLuint mask)
30 {
31 UNREACHABLE();
32 }
33
coverFillPath(const gl::Path * path,GLenum coverMode)34 void ContextImpl::coverFillPath(const gl::Path *path, GLenum coverMode)
35 {
36 UNREACHABLE();
37 }
38
coverStrokePath(const gl::Path * path,GLenum coverMode)39 void ContextImpl::coverStrokePath(const gl::Path *path, GLenum coverMode)
40 {
41 UNREACHABLE();
42 }
43
stencilThenCoverFillPath(const gl::Path * path,GLenum fillMode,GLuint mask,GLenum coverMode)44 void ContextImpl::stencilThenCoverFillPath(const gl::Path *path,
45 GLenum fillMode,
46 GLuint mask,
47 GLenum coverMode)
48 {
49 UNREACHABLE();
50 }
51
stencilThenCoverStrokePath(const gl::Path * path,GLint reference,GLuint mask,GLenum coverMode)52 void ContextImpl::stencilThenCoverStrokePath(const gl::Path *path,
53 GLint reference,
54 GLuint mask,
55 GLenum coverMode)
56 {
57 UNREACHABLE();
58 }
59
coverFillPathInstanced(const std::vector<gl::Path * > & paths,GLenum coverMode,GLenum transformType,const GLfloat * transformValues)60 void ContextImpl::coverFillPathInstanced(const std::vector<gl::Path *> &paths,
61 GLenum coverMode,
62 GLenum transformType,
63 const GLfloat *transformValues)
64 {
65 UNREACHABLE();
66 }
67
coverStrokePathInstanced(const std::vector<gl::Path * > & paths,GLenum coverMode,GLenum transformType,const GLfloat * transformValues)68 void ContextImpl::coverStrokePathInstanced(const std::vector<gl::Path *> &paths,
69 GLenum coverMode,
70 GLenum transformType,
71 const GLfloat *transformValues)
72 {
73 UNREACHABLE();
74 }
75
stencilFillPathInstanced(const std::vector<gl::Path * > & paths,GLenum fillMode,GLuint mask,GLenum transformType,const GLfloat * transformValues)76 void ContextImpl::stencilFillPathInstanced(const std::vector<gl::Path *> &paths,
77 GLenum fillMode,
78 GLuint mask,
79 GLenum transformType,
80 const GLfloat *transformValues)
81 {
82 UNREACHABLE();
83 }
84
stencilStrokePathInstanced(const std::vector<gl::Path * > & paths,GLint reference,GLuint mask,GLenum transformType,const GLfloat * transformValues)85 void ContextImpl::stencilStrokePathInstanced(const std::vector<gl::Path *> &paths,
86 GLint reference,
87 GLuint mask,
88 GLenum transformType,
89 const GLfloat *transformValues)
90 {
91 UNREACHABLE();
92 }
93
stencilThenCoverFillPathInstanced(const std::vector<gl::Path * > & paths,GLenum coverMode,GLenum fillMode,GLuint mask,GLenum transformType,const GLfloat * transformValues)94 void ContextImpl::stencilThenCoverFillPathInstanced(const std::vector<gl::Path *> &paths,
95 GLenum coverMode,
96 GLenum fillMode,
97 GLuint mask,
98 GLenum transformType,
99 const GLfloat *transformValues)
100 {
101 UNREACHABLE();
102 }
103
stencilThenCoverStrokePathInstanced(const std::vector<gl::Path * > & paths,GLenum coverMode,GLint reference,GLuint mask,GLenum transformType,const GLfloat * transformValues)104 void ContextImpl::stencilThenCoverStrokePathInstanced(const std::vector<gl::Path *> &paths,
105 GLenum coverMode,
106 GLint reference,
107 GLuint mask,
108 GLenum transformType,
109 const GLfloat *transformValues)
110 {
111 UNREACHABLE();
112 }
113
setMemoryProgramCache(gl::MemoryProgramCache * memoryProgramCache)114 void ContextImpl::setMemoryProgramCache(gl::MemoryProgramCache *memoryProgramCache)
115 {
116 mMemoryProgramCache = memoryProgramCache;
117 }
118
119 } // namespace rx
120