Metal: split non-trivial objects in their own file.

No functional changes intended, but there are a couple additional
cleanups:
 - Use anonymous namespaces instead of static functions
 - Don't store an extra Device pointer in objects
This commit is contained in:
Corentin Wallez
2017-06-14 15:46:59 -04:00
committed by Corentin Wallez
parent 702186e169
commit 0ba5550874
23 changed files with 1572 additions and 1098 deletions

View File

@@ -12,20 +12,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef BACKEND_OPENGL_COMMANDBUFFER_H_
#define BACKEND_OPENGL_COMMANDBUFFER_H_
#ifndef BACKEND_OPENGL_COMMANDBUFFERGL_H_
#define BACKEND_OPENGL_COMMANDBUFFERGL_H_
#include "common/CommandAllocator.h"
#include "common/CommandBuffer.h"
namespace backend {
class CommandBufferBuilder;
}
namespace backend {
namespace opengl {
class Device;
class Device;
class CommandBuffer : public CommandBufferBase {
public:
@@ -42,4 +38,4 @@ namespace opengl {
}
}
#endif // BACKEND_OPENGL_COMMANDBUFFER_H_
#endif // BACKEND_OPENGL_COMMANDBUFFERGL_H_