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

Side by Side Diff: src/gpu/GrDrawTarget.cpp

Issue 1148243002: Add RGBA half float texture format. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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/GrTypes.h ('k') | src/gpu/gl/GrGLCaps.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 #include "GrDrawTarget.h" 9 #include "GrDrawTarget.h"
10 10
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 "RGBA444", // kRGBA_4444_GrPixelConfig, 727 "RGBA444", // kRGBA_4444_GrPixelConfig,
728 "RGBA8888", // kRGBA_8888_GrPixelConfig, 728 "RGBA8888", // kRGBA_8888_GrPixelConfig,
729 "BGRA8888", // kBGRA_8888_GrPixelConfig, 729 "BGRA8888", // kBGRA_8888_GrPixelConfig,
730 "SRGBA8888",// kSRGBA_8888_GrPixelConfig, 730 "SRGBA8888",// kSRGBA_8888_GrPixelConfig,
731 "ETC1", // kETC1_GrPixelConfig, 731 "ETC1", // kETC1_GrPixelConfig,
732 "LATC", // kLATC_GrPixelConfig, 732 "LATC", // kLATC_GrPixelConfig,
733 "R11EAC", // kR11_EAC_GrPixelConfig, 733 "R11EAC", // kR11_EAC_GrPixelConfig,
734 "ASTC12x12",// kASTC_12x12_GrPixelConfig, 734 "ASTC12x12",// kASTC_12x12_GrPixelConfig,
735 "RGBAFloat",// kRGBA_float_GrPixelConfig 735 "RGBAFloat",// kRGBA_float_GrPixelConfig
736 "AlphaHalf",// kAlpha_half_GrPixelConfig 736 "AlphaHalf",// kAlpha_half_GrPixelConfig
737 "RGBAHalf", // kRGBA_half_GrPixelConfig
737 }; 738 };
738 GR_STATIC_ASSERT(0 == kUnknown_GrPixelConfig); 739 GR_STATIC_ASSERT(0 == kUnknown_GrPixelConfig);
739 GR_STATIC_ASSERT(1 == kAlpha_8_GrPixelConfig); 740 GR_STATIC_ASSERT(1 == kAlpha_8_GrPixelConfig);
740 GR_STATIC_ASSERT(2 == kIndex_8_GrPixelConfig); 741 GR_STATIC_ASSERT(2 == kIndex_8_GrPixelConfig);
741 GR_STATIC_ASSERT(3 == kRGB_565_GrPixelConfig); 742 GR_STATIC_ASSERT(3 == kRGB_565_GrPixelConfig);
742 GR_STATIC_ASSERT(4 == kRGBA_4444_GrPixelConfig); 743 GR_STATIC_ASSERT(4 == kRGBA_4444_GrPixelConfig);
743 GR_STATIC_ASSERT(5 == kRGBA_8888_GrPixelConfig); 744 GR_STATIC_ASSERT(5 == kRGBA_8888_GrPixelConfig);
744 GR_STATIC_ASSERT(6 == kBGRA_8888_GrPixelConfig); 745 GR_STATIC_ASSERT(6 == kBGRA_8888_GrPixelConfig);
745 GR_STATIC_ASSERT(7 == kSRGBA_8888_GrPixelConfig); 746 GR_STATIC_ASSERT(7 == kSRGBA_8888_GrPixelConfig);
746 GR_STATIC_ASSERT(8 == kETC1_GrPixelConfig); 747 GR_STATIC_ASSERT(8 == kETC1_GrPixelConfig);
747 GR_STATIC_ASSERT(9 == kLATC_GrPixelConfig); 748 GR_STATIC_ASSERT(9 == kLATC_GrPixelConfig);
748 GR_STATIC_ASSERT(10 == kR11_EAC_GrPixelConfig); 749 GR_STATIC_ASSERT(10 == kR11_EAC_GrPixelConfig);
749 GR_STATIC_ASSERT(11 == kASTC_12x12_GrPixelConfig); 750 GR_STATIC_ASSERT(11 == kASTC_12x12_GrPixelConfig);
750 GR_STATIC_ASSERT(12 == kRGBA_float_GrPixelConfig); 751 GR_STATIC_ASSERT(12 == kRGBA_float_GrPixelConfig);
751 GR_STATIC_ASSERT(13 == kAlpha_half_GrPixelConfig); 752 GR_STATIC_ASSERT(13 == kAlpha_half_GrPixelConfig);
753 GR_STATIC_ASSERT(14 == kRGBA_half_GrPixelConfig);
752 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kConfigNames) == kGrPixelConfigCnt); 754 GR_STATIC_ASSERT(SK_ARRAY_COUNT(kConfigNames) == kGrPixelConfigCnt);
753 755
754 SkASSERT(!fConfigRenderSupport[kUnknown_GrPixelConfig][0]); 756 SkASSERT(!fConfigRenderSupport[kUnknown_GrPixelConfig][0]);
755 SkASSERT(!fConfigRenderSupport[kUnknown_GrPixelConfig][1]); 757 SkASSERT(!fConfigRenderSupport[kUnknown_GrPixelConfig][1]);
756 758
757 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { 759 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) {
758 r.appendf("%s is renderable: %s, with MSAA: %s\n", 760 r.appendf("%s is renderable: %s, with MSAA: %s\n",
759 kConfigNames[i], 761 kConfigNames[i],
760 gNY[fConfigRenderSupport[i][0]], 762 gNY[fConfigRenderSupport[i][0]],
761 gNY[fConfigRenderSupport[i][1]]); 763 gNY[fConfigRenderSupport[i][1]]);
(...skipping 16 matching lines...) Expand all
778 GrPipelineBuilder::AutoRestoreFragmentProcessors* a rfp, 780 GrPipelineBuilder::AutoRestoreFragmentProcessors* a rfp,
779 GrPipelineBuilder::AutoRestoreStencil* ars, 781 GrPipelineBuilder::AutoRestoreStencil* ars,
780 GrScissorState* scissorState, 782 GrScissorState* scissorState,
781 const SkRect* devBounds) { 783 const SkRect* devBounds) {
782 return fClipMaskManager.setupClipping(pipelineBuilder, 784 return fClipMaskManager.setupClipping(pipelineBuilder,
783 arfp, 785 arfp,
784 ars, 786 ars,
785 scissorState, 787 scissorState,
786 devBounds); 788 devBounds);
787 } 789 }
OLDNEW
« no previous file with comments | « include/gpu/GrTypes.h ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698