OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
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 PictureRenderer_DEFINED | 8 #ifndef PictureRenderer_DEFINED |
9 #define PictureRenderer_DEFINED | 9 #define PictureRenderer_DEFINED |
10 | 10 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 case kMesa_DeviceType: | 193 case kMesa_DeviceType: |
194 glContextType = GrContextFactory::kMESA_GLContextType; | 194 glContextType = GrContextFactory::kMESA_GLContextType; |
195 break; | 195 break; |
196 #endif | 196 #endif |
197 #endif | 197 #endif |
198 default: | 198 default: |
199 // Invalid device type. | 199 // Invalid device type. |
200 return false; | 200 return false; |
201 } | 201 } |
202 #if SK_SUPPORT_GPU | 202 #if SK_SUPPORT_GPU |
203 fGrContext = fGrContextFactory.get(glContextType); | 203 fGrContext = fGrContextFactory.get(glContextType, kNone_GrGLStandard); |
204 if (NULL == fGrContext) { | 204 if (NULL == fGrContext) { |
205 return false; | 205 return false; |
206 } else { | 206 } else { |
207 fGrContext->ref(); | 207 fGrContext->ref(); |
208 return true; | 208 return true; |
209 } | 209 } |
210 #endif | 210 #endif |
211 } | 211 } |
212 | 212 |
213 #if SK_SUPPORT_GPU | 213 #if SK_SUPPORT_GPU |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 | 652 |
653 typedef PictureRenderer INHERITED; | 653 typedef PictureRenderer INHERITED; |
654 }; | 654 }; |
655 | 655 |
656 extern PictureRenderer* CreateGatherPixelRefsRenderer(); | 656 extern PictureRenderer* CreateGatherPixelRefsRenderer(); |
657 extern PictureRenderer* CreatePictureCloneRenderer(); | 657 extern PictureRenderer* CreatePictureCloneRenderer(); |
658 | 658 |
659 } | 659 } |
660 | 660 |
661 #endif // PictureRenderer_DEFINED | 661 #endif // PictureRenderer_DEFINED |
OLD | NEW |