blob: 70207c1280abbe5ecd82f4f7120931ff4edf01c2 [file] [log] [blame]
Stan Iliev021693b2016-10-17 16:26:15 -04001/*
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
17#pragma once
18
19namespace android {
20namespace uirenderer {
21namespace skiapipeline {
22
23/**
24 * TODO: this is a stub that will be added in a subsquent CL
25 */
26class SkiaFrameRenderer {
27public:
28
29 static bool skpCaptureEnabled() { return false; }
30
31 // TODO avoids unused compile error but we need to pass this to the reorder drawables!
32 static float getLightRadius() {
33 return 1.0f;
34 }
35
36 static uint8_t getAmbientShadowAlpha() {
37 return 1;
38 }
39
40 static uint8_t getSpotShadowAlpha() {
41 return 1;
42 }
43
44 static Vector3 getLightCenter() {
45 Vector3 result;
46 result.x = result.y = result.z = 1.0f;
47 return result;
48 }
49
50};
51
52}; // namespace skiapipeline
53}; // namespace uirenderer
54}; // namespace android