OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkDraw3D_DEFINED | 10 #ifndef SkDraw3D_DEFINED |
(...skipping 20 matching lines...) Expand all Loading... |
31 private: | 31 private: |
32 SkScalar hackWidth; | 32 SkScalar hackWidth; |
33 SkScalar hackHeight; | 33 SkScalar hackHeight; |
34 SkCamera3D fCamera; | 34 SkCamera3D fCamera; |
35 Sk3D_Patch* patch; | 35 Sk3D_Patch* patch; |
36 }; | 36 }; |
37 | 37 |
38 class Sk3D_Patch : public SkDisplayable { | 38 class Sk3D_Patch : public SkDisplayable { |
39 DECLARE_MEMBER_INFO(3D_Patch); | 39 DECLARE_MEMBER_INFO(3D_Patch); |
40 private: | 40 private: |
41 virtual void executeFunction(SkDisplayable* , int index, | 41 void executeFunction(SkDisplayable* , int index, |
42 SkTDArray<SkScriptValue>& parameters, SkDisplayTypes type, | 42 SkTDArray<SkScriptValue>& parameters, SkDisplayTypes type, |
43 SkScriptValue* ) override; | 43 SkScriptValue* ) override; |
44 const SkFunctionParamType* getFunctionsParameters() override; | 44 const SkFunctionParamType* getFunctionsParameters() override; |
45 SkPatch3D fPatch; | 45 SkPatch3D fPatch; |
46 static const SkFunctionParamType fFunctionParameters[]; | 46 static const SkFunctionParamType fFunctionParameters[]; |
47 friend class Sk3D_Camera; | 47 friend class Sk3D_Camera; |
48 }; | 48 }; |
49 | 49 |
50 #endif // SkDraw3D_DEFINED | 50 #endif // SkDraw3D_DEFINED |
OLD | NEW |