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

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: retry upload 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
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | tools/PictureRenderer.cpp » ('j') | 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 return NULL; 333 return NULL;
334 } 334 }
335 return fGrContextFactory.getGLContext(glContextType); 335 return fGrContextFactory.getGLContext(glContextType);
336 } 336 }
337 337
338 GrContext* getGrContext() { 338 GrContext* getGrContext() {
339 return fGrContext; 339 return fGrContext;
340 } 340 }
341 #endif 341 #endif
342 342
343 SkCanvas* getCanvas() {
344 return fCanvas;
345 }
346
343 PictureRenderer() 347 PictureRenderer()
344 : fPicture(NULL) 348 : fPicture(NULL)
345 , fJsonSummaryPtr(NULL) 349 , fJsonSummaryPtr(NULL)
346 , fDeviceType(kBitmap_DeviceType) 350 , fDeviceType(kBitmap_DeviceType)
347 , fBBoxHierarchyType(kNone_BBoxHierarchyType) 351 , fBBoxHierarchyType(kNone_BBoxHierarchyType)
348 , fScaleFactor(SK_Scalar1) 352 , fScaleFactor(SK_Scalar1)
349 #if SK_SUPPORT_GPU 353 #if SK_SUPPORT_GPU
350 , fGrContext(NULL) 354 , fGrContext(NULL)
351 , fSampleCount(0) 355 , fSampleCount(0)
352 #endif 356 #endif
(...skipping 271 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
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | tools/PictureRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698