From 7c971e0e7791ab38d7d3d8ebc25468c44cbe49c5 Mon Sep 17 00:00:00 2001 From: Sean Harmer Date: Mon, 12 Oct 2015 20:45:19 +0100 Subject: Move Qt3DCore into Qt3DCore namespace Update other aspects, tests and examples accordingly. Change-Id: Ib1bcf0bdf4f5aec4422dc0c80bfc32b27fb1a317 Reviewed-by: Paul Lemire --- .../core/qcircularbuffer/tst_bench_qcircularbuffer.cpp | 2 +- .../core/qframeallocator/tst_bench_qframeallocator.cpp | 2 +- .../arraypolicy/tst_bench_arraypolicy.cpp | 16 ++++++++-------- .../qresourcesmanager/tst_bench_qresourcesmanager.cpp | 18 +++++++++--------- 4 files changed, 19 insertions(+), 19 deletions(-) (limited to 'tests/benchmarks') diff --git a/tests/benchmarks/core/qcircularbuffer/tst_bench_qcircularbuffer.cpp b/tests/benchmarks/core/qcircularbuffer/tst_bench_qcircularbuffer.cpp index b20e0b010..2e1d990c3 100644 --- a/tests/benchmarks/core/qcircularbuffer/tst_bench_qcircularbuffer.cpp +++ b/tests/benchmarks/core/qcircularbuffer/tst_bench_qcircularbuffer.cpp @@ -39,7 +39,7 @@ #include -using namespace Qt3D; +using namespace Qt3DCore; class tst_QCircularBuffer : public QObject { diff --git a/tests/benchmarks/core/qframeallocator/tst_bench_qframeallocator.cpp b/tests/benchmarks/core/qframeallocator/tst_bench_qframeallocator.cpp index 9e6ab6fa4..3c015ee3a 100644 --- a/tests/benchmarks/core/qframeallocator/tst_bench_qframeallocator.cpp +++ b/tests/benchmarks/core/qframeallocator/tst_bench_qframeallocator.cpp @@ -39,7 +39,7 @@ #include -using namespace Qt3D; +using namespace Qt3DCore; class tst_QFrameAllocator : public QObject { diff --git a/tests/benchmarks/core/qresourcesmanager/arraypolicy/tst_bench_arraypolicy.cpp b/tests/benchmarks/core/qresourcesmanager/arraypolicy/tst_bench_arraypolicy.cpp index 3acddc134..29667724a 100644 --- a/tests/benchmarks/core/qresourcesmanager/arraypolicy/tst_bench_arraypolicy.cpp +++ b/tests/benchmarks/core/qresourcesmanager/arraypolicy/tst_bench_arraypolicy.cpp @@ -97,42 +97,42 @@ void benchmarkReleaseResources() void tst_ArrayPolicy::benchmarkDynamicAllocateSmallResources() { - benchmarkAllocateResources, SmallType>(); + benchmarkAllocateResources, SmallType>(); } void tst_ArrayPolicy::benchmarkDynamicReleaseSmallResources() { - benchmarkReleaseResources, SmallType>(); + benchmarkReleaseResources, SmallType>(); } void tst_ArrayPolicy::benchmarkDynamicAllocateBigResources() { - benchmarkAllocateResources, BigType>(); + benchmarkAllocateResources, BigType>(); } void tst_ArrayPolicy::benchmarkDynamicReleaseBigResources() { - benchmarkReleaseResources, BigType>(); + benchmarkReleaseResources, BigType>(); } void tst_ArrayPolicy::benchmarkPreallocatedAllocateSmallResources() { - benchmarkAllocateResources, SmallType>(); + benchmarkAllocateResources, SmallType>(); } void tst_ArrayPolicy::benchmarkPreallocatedReleaseSmallResources() { - benchmarkReleaseResources, SmallType>(); + benchmarkReleaseResources, SmallType>(); } void tst_ArrayPolicy::benchmarkPreallocatedAllocateBigResources() { - benchmarkAllocateResources, BigType>(); + benchmarkAllocateResources, BigType>(); } void tst_ArrayPolicy::benchmarkPreallocatedReleaseBigResources() { - benchmarkReleaseResources, BigType>(); + benchmarkReleaseResources, BigType>(); } QTEST_APPLESS_MAIN(tst_ArrayPolicy) diff --git a/tests/benchmarks/core/qresourcesmanager/qresourcesmanager/tst_bench_qresourcesmanager.cpp b/tests/benchmarks/core/qresourcesmanager/qresourcesmanager/tst_bench_qresourcesmanager.cpp index d14adc486..221c43e74 100644 --- a/tests/benchmarks/core/qresourcesmanager/qresourcesmanager/tst_bench_qresourcesmanager.cpp +++ b/tests/benchmarks/core/qresourcesmanager/qresourcesmanager/tst_bench_qresourcesmanager.cpp @@ -77,7 +77,7 @@ public: template void benchmarkAllocateResources() { - Qt3D::QResourceManager manager; + Qt3DCore::QResourceManager manager; volatile Resource *c; QBENCHMARK_ONCE { @@ -91,9 +91,9 @@ void benchmarkAllocateResources() template void benchmarkAccessResources() { - Qt3D::QResourceManager manager; + Qt3DCore::QResourceManager manager; const int max = (1 << 16) - 1; - QVector > handles(max); + QVector > handles(max); for (int i = 0; i < max; i++) handles[i] = manager.acquire(); @@ -107,9 +107,9 @@ void benchmarkAccessResources() template void benchmarkRandomAccessResource() { - Qt3D::QResourceManager manager; + Qt3DCore::QResourceManager manager; const int max = (1 << 16) - 1; - QVector > handles(max); + QVector > handles(max); for (int i = 0; i < max; i++) handles[i] = manager.acquire(); @@ -126,7 +126,7 @@ void benchmarkRandomAccessResource() { template void benchmarkLookupResources() { - Qt3D::QResourceManager manager; + Qt3DCore::QResourceManager manager; const int max = (1 << 16) - 1; for (int i = 0; i < max; i++) manager.getOrCreateResource(i); @@ -142,7 +142,7 @@ void benchmarkLookupResources() template void benchmarkRandomLookupResources() { - Qt3D::QResourceManager manager; + Qt3DCore::QResourceManager manager; const int max = (1 << 16) - 1; QVector resourcesIndices(max); for (int i = 0; i < max; i++) { @@ -162,9 +162,9 @@ void benchmarkRandomLookupResources() template void benchmarkReleaseResources() { - Qt3D::QResourceManager manager; + Qt3DCore::QResourceManager manager; const int max = (1 << 16) - 1; - QVector > handles(max); + QVector > handles(max); for (int i = 0; i < max; i++) handles[i] = manager.acquire(); -- cgit v1.2.3