Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(473)

Side by Side Diff: samplecode/SampleApp.h

Issue 1684413003: Implement support for using GL ES 3.0 with command buffer (Closed) Base URL: https://skia.googlesource.com/skia.git@no-texture-rectangle-gles
Patch Set: egl destruction update Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 void postAnimatingEvent(); 229 void postAnimatingEvent();
230 int findByTitle(const char*); 230 int findByTitle(const char*);
231 void listTitles(); 231 void listTitles();
232 SkSize tileSize() const; 232 SkSize tileSize() const;
233 bool sendAnimatePulse(); 233 bool sendAnimatePulse();
234 234
235 typedef SkOSWindow INHERITED; 235 typedef SkOSWindow INHERITED;
236 }; 236 };
237 237
238 #endif 238 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698