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

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

Issue 1320533005: Add new surface flag (Closed) Base URL: https://chromium.googlesource.com/skia@master
Patch Set: Created 5 years, 3 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 | « no previous file | no next file » | 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 2010 Google Inc. 2 * Copyright 2010 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 GrTypes_DEFINED 8 #ifndef GrTypes_DEFINED
9 #define GrTypes_DEFINED 9 #define GrTypes_DEFINED
10 10
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 * Optional bitfield flags that can be set on GrSurfaceDesc (below). 410 * Optional bitfield flags that can be set on GrSurfaceDesc (below).
411 */ 411 */
412 enum GrSurfaceFlags { 412 enum GrSurfaceFlags {
413 kNone_GrSurfaceFlags = 0x0, 413 kNone_GrSurfaceFlags = 0x0,
414 /** 414 /**
415 * Creates a texture that can be rendered to as a GrRenderTarget. Use 415 * Creates a texture that can be rendered to as a GrRenderTarget. Use
416 * GrTexture::asRenderTarget() to access. 416 * GrTexture::asRenderTarget() to access.
417 */ 417 */
418 kRenderTarget_GrSurfaceFlag = 0x1, 418 kRenderTarget_GrSurfaceFlag = 0x1,
419 /** 419 /**
420 * Placeholder for managing zero-copy textures
421 */
422 kZeroCopy_GrSurfaceFlag = 0x2,
423 /**
420 * Indicates that all allocations (color buffer, FBO completeness, etc) 424 * Indicates that all allocations (color buffer, FBO completeness, etc)
421 * should be verified. 425 * should be verified.
422 */ 426 */
423 kCheckAllocation_GrSurfaceFlag = 0x4, 427 kCheckAllocation_GrSurfaceFlag = 0x4,
424 }; 428 };
425 429
426 GR_MAKE_BITFIELD_OPS(GrSurfaceFlags) 430 GR_MAKE_BITFIELD_OPS(GrSurfaceFlags)
427 431
428 /** 432 /**
429 * Some textures will be stored such that the upper and left edges of the conten t meet at the 433 * Some textures will be stored such that the upper and left edges of the conten t meet at the
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 return 4 * width * height; 638 return 4 * width * height;
635 } 639 }
636 } 640 }
637 641
638 /** 642 /**
639 * This value translates to reseting all the context state for any backend. 643 * This value translates to reseting all the context state for any backend.
640 */ 644 */
641 static const uint32_t kAll_GrBackendState = 0xffffffff; 645 static const uint32_t kAll_GrBackendState = 0xffffffff;
642 646
643 #endif 647 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698