1875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian/*
2875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian * Copyright 2013 The Android Open Source Project
3875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian *
4875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian * Licensed under the Apache License, Version 2.0 (the "License");
5875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian * you may not use this file except in compliance with the License.
6875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian * You may obtain a copy of the License at
7875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian *
8875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian *      http://www.apache.org/licenses/LICENSE-2.0
9875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian *
10875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian * Unless required by applicable law or agreed to in writing, software
11875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian * distributed under the License is distributed on an "AS IS" BASIS,
12875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian * See the License for the specific language governing permissions and
14875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian * limitations under the License.
15875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian */
16875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian
17875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian
18875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian#ifndef SF_GLES10RENDERENGINE_H_
19875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian#define SF_GLES10RENDERENGINE_H_
20875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian
21875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian#include <stdint.h>
22875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian#include <sys/types.h>
23875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian
24875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian#include "GLES11RenderEngine.h"
25875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian
26875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian// ---------------------------------------------------------------------------
27875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopiannamespace android {
28875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian// ---------------------------------------------------------------------------
29875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian
30875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopianclass GLES10RenderEngine : public GLES11RenderEngine {
31875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian    virtual ~GLES10RenderEngine();
32875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopianprotected:
339e56aa0fdb5f7121b9b975c6c16db103ea4d2fe9Dan Stoza#ifdef USE_HWC2
349e56aa0fdb5f7121b9b975c6c16db103ea4d2fe9Dan Stoza    virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque,
359e56aa0fdb5f7121b9b975c6c16db103ea4d2fe9Dan Stoza            float alpha) override;
369e56aa0fdb5f7121b9b975c6c16db103ea4d2fe9Dan Stoza#else
37875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian    virtual void setupLayerBlending(bool premultipliedAlpha, bool opaque, int alpha);
389e56aa0fdb5f7121b9b975c6c16db103ea4d2fe9Dan Stoza#endif
39875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian};
40875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian
41875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian// ---------------------------------------------------------------------------
42875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian}; // namespace android
43875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian// ---------------------------------------------------------------------------
44875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian
45875d8e1323536e16dcfc90c9674d7ad32116a69aMathias Agopian#endif /* SF_GLES10RENDERENGINE_H_ */
46