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

Side by Side Diff: tools/PictureRenderer.h

Issue 197123003: Proposed SkCanvas API for preLoading textures to VRAM v2.0 (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: address code review comments Created 6 years, 9 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 | Annotate | Revision Log
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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 #endif 302 #endif
303 #if SK_MESA 303 #if SK_MESA
304 case kMesa_DeviceType: 304 case kMesa_DeviceType:
305 #endif 305 #endif
306 return true; 306 return true;
307 default: 307 default:
308 return false; 308 return false;
309 } 309 }
310 } 310 }
311 311
312 SkCanvas* getCanvas() {
313 return fCanvas;
314 }
315
312 SkGLContextHelper* getGLContext() { 316 SkGLContextHelper* getGLContext() {
313 GrContextFactory::GLContextType glContextType 317 GrContextFactory::GLContextType glContextType
314 = GrContextFactory::kNull_GLContextType; 318 = GrContextFactory::kNull_GLContextType;
315 switch(fDeviceType) { 319 switch(fDeviceType) {
316 case kGPU_DeviceType: 320 case kGPU_DeviceType:
317 glContextType = GrContextFactory::kNative_GLContextType; 321 glContextType = GrContextFactory::kNative_GLContextType;
318 break; 322 break;
319 case kNVPR_DeviceType: 323 case kNVPR_DeviceType:
320 glContextType = GrContextFactory::kNVPR_GLContextType; 324 glContextType = GrContextFactory::kNVPR_GLContextType;
321 break; 325 break;
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 628
625 typedef PictureRenderer INHERITED; 629 typedef PictureRenderer INHERITED;
626 }; 630 };
627 631
628 extern PictureRenderer* CreateGatherPixelRefsRenderer(); 632 extern PictureRenderer* CreateGatherPixelRefsRenderer();
629 extern PictureRenderer* CreatePictureCloneRenderer(); 633 extern PictureRenderer* CreatePictureCloneRenderer();
630 634
631 } 635 }
632 636
633 #endif // PictureRenderer_DEFINED 637 #endif // PictureRenderer_DEFINED
OLDNEW
« src/core/SkPicture.cpp ('K') | « src/gpu/SkGpuDevice.cpp ('k') | tools/PictureRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698