OLD | NEW |
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 | 9 |
10 | 10 |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 | 464 |
465 /** | 465 /** |
466 * Describes a texture to be created. | 466 * Describes a texture to be created. |
467 */ | 467 */ |
468 struct GrTextureDesc { | 468 struct GrTextureDesc { |
469 GrTextureDesc() | 469 GrTextureDesc() |
470 : fFlags(kNone_GrTextureFlags) | 470 : fFlags(kNone_GrTextureFlags) |
471 , fOrigin(kDefault_GrSurfaceOrigin) | 471 , fOrigin(kDefault_GrSurfaceOrigin) |
472 , fWidth(0) | 472 , fWidth(0) |
473 , fHeight(0) | 473 , fHeight(0) |
| 474 , fDepth(0) |
474 , fConfig(kUnknown_GrPixelConfig) | 475 , fConfig(kUnknown_GrPixelConfig) |
475 , fSampleCnt(0) { | 476 , fSampleCnt(0) { |
476 } | 477 } |
477 | 478 |
478 GrTextureFlags fFlags; //!< bitfield of TextureFlags | 479 GrTextureFlags fFlags; //!< bitfield of TextureFlags |
479 GrSurfaceOrigin fOrigin; //!< origin of the texture | 480 GrSurfaceOrigin fOrigin; //!< origin of the texture |
480 int fWidth; //!< Width of the texture | 481 int fWidth; //!< Width of the texture |
481 int fHeight; //!< Height of the texture | 482 int fHeight; //!< Height of the texture |
| 483 int fDepth; //!< Depth of the texture |
482 | 484 |
483 /** | 485 /** |
484 * Format of source data of the texture. Not guaranteed to be the same as | 486 * Format of source data of the texture. Not guaranteed to be the same as |
485 * internal format used by 3D API. | 487 * internal format used by 3D API. |
486 */ | 488 */ |
487 GrPixelConfig fConfig; | 489 GrPixelConfig fConfig; |
488 | 490 |
489 /** | 491 /** |
490 * The number of samples per pixel or 0 to disable full scene AA. This only | 492 * The number of samples per pixel or 0 to disable full scene AA. This only |
491 * applies if the kRenderTarget_GrTextureFlagBit is set. The actual number | 493 * applies if the kRenderTarget_GrTextureFlagBit is set. The actual number |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 public: | 720 public: |
719 GrAutoMalloc() : INHERITED() {} | 721 GrAutoMalloc() : INHERITED() {} |
720 explicit GrAutoMalloc(size_t size) : INHERITED(size) {} | 722 explicit GrAutoMalloc(size_t size) : INHERITED(size) {} |
721 virtual ~GrAutoMalloc() {} | 723 virtual ~GrAutoMalloc() {} |
722 private: | 724 private: |
723 typedef GrAutoMallocBaseType INHERITED; | 725 typedef GrAutoMallocBaseType INHERITED; |
724 }; | 726 }; |
725 | 727 |
726 #undef GrAutoMallocBaseType | 728 #undef GrAutoMallocBaseType |
727 #endif | 729 #endif |
OLD | NEW |