!12944 修复hello_composer

Merge pull request !12944 from 刘瓒/hello_composer
This commit is contained in:
openharmony_ci 2024-07-24 06:22:13 +00:00 committed by Gitee
commit 66d1709e9c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 3 deletions

View File

@ -49,8 +49,8 @@ static const std::map<GraphicCompositionType, std::string> CompositionTypeStrs =
{GRAPHIC_COMPOSITION_DEVICE_CLEAR, "4 <device clear composistion>"},
{GRAPHIC_COMPOSITION_CLIENT_CLEAR, "5 <client clear composistion>"},
{GRAPHIC_COMPOSITION_TUNNEL, "6 <tunnel composistion>"},
{GRAPHIC_COMPOSITION_BUTT, "7 <uninitialized>"},
{GRAPHIC_COMPOSITION_SOLID_COLOR, "8 <layercolor composition>"},
{GRAPHIC_COMPOSITION_SOLID_COLOR, "7 <layercolor composition>"},
{GRAPHIC_COMPOSITION_BUTT, "8 <uninitialized>"},
};
static const std::map<GraphicBlendType, std::string> BlendTypeStrs = {

View File

@ -31,7 +31,7 @@ namespace {
}
LayerContext::LayerContext(GraphicIRect dst, GraphicIRect src, uint32_t zorder, LayerType layerType)
: cSurface_(IConsumerSurface::Create()), dst_(dst), src_(src), zorder_(zorder), layerType_(layerType)
: dst_(dst), src_(src), zorder_(zorder), cSurface_(IConsumerSurface::Create()), layerType_(layerType)
{
cSurface_->SetDefaultWidthAndHeight(src.w, src.h);
cSurface_->SetDefaultUsage(BUFFER_USAGE_CPU_READ | BUFFER_USAGE_CPU_WRITE | BUFFER_USAGE_MEM_DMA);