Dali 3D User Interface Engine
Functions | Variables
anonymous_namespace{utc-image-loading-common.h} Namespace Reference

Functions

double GetTimeMilliseconds (Integration::PlatformAbstraction &abstraction)
 Returns elapsed milliseconds. More...
 

Variables

const unsigned NUM_LOAD_GROUPS_TO_ISSUE = 158
 The number of loads issued in test cases is a multiple of this. More...
 
const unsigned NUM_CANCELLED_LOAD_GROUPS_TO_ISSUE = NUM_LOAD_GROUPS_TO_ISSUE * 10
 The number of loads to issue when they will be cancelled. More...
 
const unsigned MAX_NUM_RESOURCE_TRIES = 10
 The number of times to ask for resource load status. More...
 
const unsigned MAX_MILLIS_TO_WAIT_FOR_KNOWN_LOADS = 1000 * 60
 The maximum time to wait for loads to complete when the number of expected loads is known. More...
 
const char *const VALID_IMAGES []
 Images that should load without issue. More...
 
const unsigned NUM_VALID_IMAGES = sizeof(VALID_IMAGES) / sizeof(VALID_IMAGES[0])
 

Function Documentation

double anonymous_namespace{utc-image-loading-common.h}::GetTimeMilliseconds ( Integration::PlatformAbstraction abstraction)

Returns elapsed milliseconds.

Definition at line 69 of file utc-image-loading-common.h.

Referenced by UtcDaliLoadCompletion().

Here is the caller graph for this function:

Variable Documentation

const unsigned anonymous_namespace{utc-image-loading-common.h}::MAX_MILLIS_TO_WAIT_FOR_KNOWN_LOADS = 1000 * 60

The maximum time to wait for loads to complete when the number of expected loads is known.

Definition at line 52 of file utc-image-loading-common.h.

Referenced by UtcDaliLoadCompletion().

const unsigned anonymous_namespace{utc-image-loading-common.h}::MAX_NUM_RESOURCE_TRIES = 10

The number of times to ask for resource load status.

Definition at line 49 of file utc-image-loading-common.h.

Referenced by UtcDaliCancelAllLoads(), and UtcDaliCancelSomeLoads().

const unsigned anonymous_namespace{utc-image-loading-common.h}::NUM_CANCELLED_LOAD_GROUPS_TO_ISSUE = NUM_LOAD_GROUPS_TO_ISSUE * 10

The number of loads to issue when they will be cancelled.

Cancelled loads are cheap so we do a lot.

Definition at line 46 of file utc-image-loading-common.h.

Referenced by UtcDaliCancelAllLoads().

const unsigned anonymous_namespace{utc-image-loading-common.h}::NUM_LOAD_GROUPS_TO_ISSUE = 158

The number of loads issued in test cases is a multiple of this.

The higher it is, the more the tests stress the system but the longer they take to run. A value of 1000 is enough to make load tests take tens of seconds each on desktop.

Definition at line 40 of file utc-image-loading-common.h.

Referenced by UtcDaliCancelSomeLoads(), and UtcDaliLoadCompletion().

const unsigned anonymous_namespace{utc-image-loading-common.h}::NUM_VALID_IMAGES = sizeof(VALID_IMAGES) / sizeof(VALID_IMAGES[0])
const char* const anonymous_namespace{utc-image-loading-common.h}::VALID_IMAGES[]
Initial value:
= {
TEST_IMAGE_DIR "/frac.jpg",
TEST_IMAGE_DIR "/frac.24.bmp",
TEST_IMAGE_DIR "/frac.png",
TEST_IMAGE_DIR "/interlaced.gif",
TEST_IMAGE_DIR "/pattern.gif",
TEST_IMAGE_DIR "/fractal-compressed-ETC1_RGB8_OES-45x80.ktx",
TEST_IMAGE_DIR "/fractal-compressed-RGBA_ASTC_4x4_KHR-32x64.astc",
TEST_IMAGE_DIR "/test-image-4x4-32bpp.ico",
TEST_IMAGE_DIR "/test-image.wbmp"
}

Images that should load without issue.

Definition at line 55 of file utc-image-loading-common.h.

Referenced by UtcDaliCancelAllLoads(), UtcDaliCancelSomeLoads(), and UtcDaliLoadCompletion().

Dali Docs Home
Read more about Dali