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

Side by Side Diff: tools/PictureRenderer.h

Issue 212933002: Actually identify required saveLayers in SkGpuDevice::EXPERIMENTAL_drawPicture (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Addressed code review issue 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 358
359 GrContext* getGrContext() { 359 GrContext* getGrContext() {
360 return fGrContext; 360 return fGrContext;
361 } 361 }
362 #endif 362 #endif
363 363
364 SkCanvas* getCanvas() { 364 SkCanvas* getCanvas() {
365 return fCanvas; 365 return fCanvas;
366 } 366 }
367 367
368 SkPicture* getPicture() {
369 return fPicture;
370 }
371
368 PictureRenderer() 372 PictureRenderer()
369 : fPicture(NULL) 373 : fPicture(NULL)
370 , fJsonSummaryPtr(NULL) 374 , fJsonSummaryPtr(NULL)
371 , fDeviceType(kBitmap_DeviceType) 375 , fDeviceType(kBitmap_DeviceType)
372 , fBBoxHierarchyType(kNone_BBoxHierarchyType) 376 , fBBoxHierarchyType(kNone_BBoxHierarchyType)
373 , fScaleFactor(SK_Scalar1) 377 , fScaleFactor(SK_Scalar1)
374 #if SK_SUPPORT_GPU 378 #if SK_SUPPORT_GPU
375 , fGrContext(NULL) 379 , fGrContext(NULL)
376 , fSampleCount(0) 380 , fSampleCount(0)
377 #endif 381 #endif
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 665
662 typedef PictureRenderer INHERITED; 666 typedef PictureRenderer INHERITED;
663 }; 667 };
664 668
665 extern PictureRenderer* CreateGatherPixelRefsRenderer(); 669 extern PictureRenderer* CreateGatherPixelRefsRenderer();
666 extern PictureRenderer* CreatePictureCloneRenderer(); 670 extern PictureRenderer* CreatePictureCloneRenderer();
667 671
668 } 672 }
669 673
670 #endif // PictureRenderer_DEFINED 674 #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