| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Skia | 2 * Copyright 2011 Skia |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SampleApp_DEFINED | 8 #ifndef SampleApp_DEFINED |
| 9 #define SampleApp_DEFINED | 9 #define SampleApp_DEFINED |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 SkTDArray<const SkViewFactory*> fSamples; | 32 SkTDArray<const SkViewFactory*> fSamples; |
| 33 public: | 33 public: |
| 34 enum DeviceType { | 34 enum DeviceType { |
| 35 kRaster_DeviceType, | 35 kRaster_DeviceType, |
| 36 #if SK_SUPPORT_GPU | 36 #if SK_SUPPORT_GPU |
| 37 kGPU_DeviceType, | 37 kGPU_DeviceType, |
| 38 #if SK_ANGLE | 38 #if SK_ANGLE |
| 39 kANGLE_DeviceType, | 39 kANGLE_DeviceType, |
| 40 #endif // SK_ANGLE | 40 #endif // SK_ANGLE |
| 41 #if SK_COMMAND_BUFFER | 41 #if SK_COMMAND_BUFFER |
| 42 kCommandBuffer_DeviceType, | 42 kCommandBufferES2_DeviceType, |
| 43 #endif // SK_COMMAND_BUFFER | 43 #endif // SK_COMMAND_BUFFER |
| 44 #endif // SK_SUPPORT_GPU | 44 #endif // SK_SUPPORT_GPU |
| 45 kDeviceTypeCnt | 45 kDeviceTypeCnt |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 static bool IsGpuDeviceType(DeviceType devType) { | 48 static bool IsGpuDeviceType(DeviceType devType) { |
| 49 #if SK_SUPPORT_GPU | 49 #if SK_SUPPORT_GPU |
| 50 switch (devType) { | 50 switch (devType) { |
| 51 case kGPU_DeviceType: | 51 case kGPU_DeviceType: |
| 52 #if SK_ANGLE | 52 #if SK_ANGLE |
| 53 case kANGLE_DeviceType: | 53 case kANGLE_DeviceType: |
| 54 #endif // SK_ANGLE | 54 #endif // SK_ANGLE |
| 55 #if SK_COMMAND_BUFFER | 55 #if SK_COMMAND_BUFFER |
| 56 case kCommandBuffer_DeviceType: | 56 case kCommandBufferES2_DeviceType: |
| 57 #endif // SK_COMMAND_BUFFER | 57 #endif // SK_COMMAND_BUFFER |
| 58 return true; | 58 return true; |
| 59 default: | 59 default: |
| 60 return false; | 60 return false; |
| 61 } | 61 } |
| 62 #endif // SK_SUPPORT_GPU | 62 #endif // SK_SUPPORT_GPU |
| 63 return false; | 63 return false; |
| 64 } | 64 } |
| 65 | 65 |
| 66 /** | 66 /** |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 void postAnimatingEvent(); | 230 void postAnimatingEvent(); |
| 231 int findByTitle(const char*); | 231 int findByTitle(const char*); |
| 232 void listTitles(); | 232 void listTitles(); |
| 233 SkSize tileSize() const; | 233 SkSize tileSize() const; |
| 234 bool sendAnimatePulse(); | 234 bool sendAnimatePulse(); |
| 235 | 235 |
| 236 typedef SkOSWindow INHERITED; | 236 typedef SkOSWindow INHERITED; |
| 237 }; | 237 }; |
| 238 | 238 |
| 239 #endif | 239 #endif |
| OLD | NEW |