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

Side by Side Diff: include/gpu/GrTypes.h

Issue 938383004: Dynamically create stencil buffer when needed. (Closed) Base URL: https://skia.googlesource.com/skia.git@bigstencil
Patch Set: Actually save file before uploading Created 5 years, 10 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
« no previous file with comments | « include/gpu/GrRenderTarget.h ('k') | src/effects/SkAlphaThresholdFilter.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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef GrTypes_DEFINED 9 #ifndef GrTypes_DEFINED
10 #define GrTypes_DEFINED 10 #define GrTypes_DEFINED
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 * Optional bitfield flags that can be set on GrSurfaceDesc (below). 383 * Optional bitfield flags that can be set on GrSurfaceDesc (below).
384 */ 384 */
385 enum GrSurfaceFlags { 385 enum GrSurfaceFlags {
386 kNone_GrSurfaceFlags = 0x0, 386 kNone_GrSurfaceFlags = 0x0,
387 /** 387 /**
388 * Creates a texture that can be rendered to as a GrRenderTarget. Use 388 * Creates a texture that can be rendered to as a GrRenderTarget. Use
389 * GrTexture::asRenderTarget() to access. 389 * GrTexture::asRenderTarget() to access.
390 */ 390 */
391 kRenderTarget_GrSurfaceFlag = 0x1, 391 kRenderTarget_GrSurfaceFlag = 0x1,
392 /** 392 /**
393 * By default all render targets have an associated stencil buffer that 393 * DEPRECATED. This has no effect.
394 * may be required for path filling. This flag overrides stencil buffer
395 * creation.
396 * MAKE THIS PRIVATE?
397 */ 394 */
398 kNoStencil_GrSurfaceFlag = 0x2, 395 kNoStencil_GrSurfaceFlag = 0x2,
399 /** 396 /**
400 * Indicates that all allocations (color buffer, FBO completeness, etc) 397 * Indicates that all allocations (color buffer, FBO completeness, etc)
401 * should be verified. 398 * should be verified.
402 */ 399 */
403 kCheckAllocation_GrSurfaceFlag = 0x4, 400 kCheckAllocation_GrSurfaceFlag = 0x4,
404 }; 401 };
405 402
406 GR_MAKE_BITFIELD_OPS(GrSurfaceFlags) 403 GR_MAKE_BITFIELD_OPS(GrSurfaceFlags)
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 public: 626 public:
630 GrAutoMalloc() : INHERITED() {} 627 GrAutoMalloc() : INHERITED() {}
631 explicit GrAutoMalloc(size_t size) : INHERITED(size) {} 628 explicit GrAutoMalloc(size_t size) : INHERITED(size) {}
632 virtual ~GrAutoMalloc() {} 629 virtual ~GrAutoMalloc() {}
633 private: 630 private:
634 typedef GrAutoMallocBaseType INHERITED; 631 typedef GrAutoMallocBaseType INHERITED;
635 }; 632 };
636 633
637 #undef GrAutoMallocBaseType 634 #undef GrAutoMallocBaseType
638 #endif 635 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrRenderTarget.h ('k') | src/effects/SkAlphaThresholdFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698