John Reck | 975591a | 2016-01-22 16:28:07 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
sergeyv | 8bd5edf | 2016-05-13 15:03:35 -0700 | [diff] [blame] | 17 | // #include'ing this file is bad, bad things should be compile errors |
| 18 | #ifdef HWUI_GLES_WRAP_ENABLED |
| 19 | #error wrap_gles.h should only be used as an auto-included header, don't directly #include it |
| 20 | #endif |
John Reck | 975591a | 2016-01-22 16:28:07 -0800 | [diff] [blame] | 21 | #define HWUI_GLES_WRAP_ENABLED |
| 22 | |
sergeyv | 5093950 | 2016-08-15 17:08:04 -0700 | [diff] [blame] | 23 | #include <GLES/gl.h> |
| 24 | #include <GLES/glext.h> |
| 25 | #include <GLES2/gl2.h> |
| 26 | #include <GLES2/gl2ext.h> |
| 27 | #include <GLES3/gl3.h> |
| 28 | #include <GLES3/gl31.h> |
| 29 | #include <GLES3/gl32.h> |
| 30 | |
Derek Sollenberger | 1766238 | 2018-09-13 14:14:00 -0400 | [diff] [blame] | 31 | // constant used by the NULL GPU implementation as well as HWUI's unit tests |
| 32 | constexpr int NULL_GPU_MAX_TEXTURE_SIZE = 2048; |
| 33 | |
sergeyv | 5093950 | 2016-08-15 17:08:04 -0700 | [diff] [blame] | 34 | // Generate stubs that route all the calls to our function table |
| 35 | #include "gles_redefine.h" |
John Reck | 975591a | 2016-01-22 16:28:07 -0800 | [diff] [blame] | 36 | |
sergeyv | 8bd5edf | 2016-05-13 15:03:35 -0700 | [diff] [blame] | 37 | #define GL_ENTRY(ret, api, ...) ret api(__VA_ARGS__); |
| 38 | |
| 39 | #include "gles_decls.in" |
| 40 | #undef GL_ENTRY |