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

Side by Side Diff: tools/PictureRenderer.h

Issue 319043005: Support using OpenGL ES context on desktop (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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
« tests/SurfaceTest.cpp ('K') | « tests/WritePixelsTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« tests/SurfaceTest.cpp ('K') | « tests/WritePixelsTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698