/***************************************************************************
*
* Copyright 2010,2011 BMW Car IT GmbH
+ * Copyright (C) 2012 DENSO CORPORATION and Robert Bosch Car Multimedia Gmbh
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* \action This command sets the render order of layers within the GENIVI LayerManagement
* \frequency Called for rearranging graphical contents.
* \param[in] sender process id of application that sent this command
+ * \param[in] screenID ID of screen
* \param[in] array array of layer ids
* \param[in] length length of array provided in parameter array
* \ingroup Commands
*/
- ScreenSetRenderOrderCommand(pid_t sender, unsigned int* array, unsigned int length)
+ ScreenSetRenderOrderCommand(pid_t sender, unsigned int screenID, unsigned int* array, unsigned int length)
: ICommand(ExecuteAsynchronous, sender)
+ , m_screenID(screenID)
, m_array(array)
, m_length(length)
{}
virtual const std::string getString();
private:
+ unsigned int m_screenID;
unsigned int* m_array;
const unsigned int m_length;
};
/***************************************************************************
*
* Copyright 2010,2011 BMW Car IT GmbH
+ * Copyright (C) 2012 DENSO CORPORATION and Robert Bosch Car Multimedia Gmbh
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
// return false;
// } // TODO insert again later
- if (scene.getCurrentRenderOrder().size() != 0)
+ if (scene.getCurrentRenderOrder(m_screenID).size() != 0)
{
IRenderer* renderer = *((executor->getRendererList())->begin());
renderer->forceCompositionWindowSystem();
result = ExecutionSuccessRedraw;
}
- scene.getCurrentRenderOrder().clear();
+ scene.getCurrentRenderOrder(m_screenID).clear();
LOG_DEBUG("ScreenSetRenderOrderCommand", "Length to set: " << m_length);
if (layer)
{
LOG_DEBUG("ScreenSetRenderOrderCommand", "Adding Layer: " << m_array[i] << " to current render order");
- scene.getCurrentRenderOrder().push_back(layer);
+ scene.getCurrentRenderOrder(m_screenID).push_back(layer);
result = ExecutionSuccessRedraw;
}
}
{
std::stringstream description;
description << "ScreenSetRenderOrderCommand("
- << "m_array=[";
+ << "m_screenID=" << m_screenID
+ << ", m_array=[";
for (unsigned int i = 0; i < m_length; ++i)
{