mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2025-02-21 12:51:58 +00:00
!12944 修复hello_composer
Merge pull request !12944 from 刘瓒/hello_composer
This commit is contained in:
commit
66d1709e9c
@ -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 = {
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user