Lines Matching refs:state_manager

6070 static void free_test_effect_state_manager(struct test_manager *state_manager)  in free_test_effect_state_manager()  argument
6072 HeapFree(GetProcessHeap(), 0, state_manager->update_record); in free_test_effect_state_manager()
6073 state_manager->update_record = NULL; in free_test_effect_state_manager()
6075 IDirect3DDevice9_Release(state_manager->device); in free_test_effect_state_manager()
6080 struct test_manager *state_manager = impl_from_ID3DXEffectStateManager(iface); in test_manager_AddRef() local
6082 return InterlockedIncrement(&state_manager->ref); in test_manager_AddRef()
6087 struct test_manager *state_manager = impl_from_ID3DXEffectStateManager(iface); in test_manager_Release() local
6088 ULONG ref = InterlockedDecrement(&state_manager->ref); in test_manager_Release()
6092 free_test_effect_state_manager(state_manager); in test_manager_Release()
6093 HeapFree(GetProcessHeap(), 0, state_manager); in test_manager_Release()
6101 struct test_manager *state_manager = impl_from_ID3DXEffectStateManager(iface); in test_process_set_state() local
6103 if (state_manager->update_record_count == state_manager->update_record_size) in test_process_set_state()
6105 if (!state_manager->update_record_size) in test_process_set_state()
6107 state_manager->update_record_size = INITIAL_UPDATE_RECORD_SIZE; in test_process_set_state()
6108 state_manager->update_record = HeapAlloc(GetProcessHeap(), 0, in test_process_set_state()
6109 sizeof(*state_manager->update_record) * state_manager->update_record_size); in test_process_set_state()
6113 state_manager->update_record_size *= 2; in test_process_set_state()
6114state_manager->update_record = HeapReAlloc(GetProcessHeap(), 0, state_manager->update_record, in test_process_set_state()
6115 sizeof(*state_manager->update_record) * state_manager->update_record_size); in test_process_set_state()
6118 state_manager->update_record[state_manager->update_record_count].state_op = state_op; in test_process_set_state()
6119 state_manager->update_record[state_manager->update_record_count].param1 = param1; in test_process_set_state()
6120 state_manager->update_record[state_manager->update_record_count].param2 = param2; in test_process_set_state()
6121 ++state_manager->update_record_count; in test_process_set_state()
6140 struct test_manager *state_manager = impl_from_ID3DXEffectStateManager(iface); in test_manager_SetLight() local
6142 IDirect3DDevice9_SetLight(state_manager->device, index, light); in test_manager_SetLight()
6149 struct test_manager *state_manager = impl_from_ID3DXEffectStateManager(iface); in test_manager_LightEnable() local
6151 IDirect3DDevice9_LightEnable(state_manager->device, index, enable); in test_manager_LightEnable()
6239 static void test_effect_state_manager_init(struct test_manager *state_manager, in test_effect_state_manager_init() argument
6269 state_manager->ID3DXEffectStateManager_iface.lpVtbl = &test_ID3DXEffectStateManager_Vtbl; in test_effect_state_manager_init()
6270 state_manager->ref = 1; in test_effect_state_manager_init()
6273 state_manager->device = device; in test_effect_state_manager_init()
6356 struct test_manager *state_manager; in test_effect_state_manager() local
6362 state_manager = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*state_manager)); in test_effect_state_manager()
6363 test_effect_state_manager_init(state_manager, device); in test_effect_state_manager()
6375 hr = effect->lpVtbl->SetStateManager(effect, &state_manager->ID3DXEffectStateManager_iface); in test_effect_state_manager()
6392 qsort(state_manager->update_record, state_manager->update_record_count, in test_effect_state_manager()
6393 sizeof(*state_manager->update_record), compare_update_record); in test_effect_state_manager()
6395 ok(ARRAY_SIZE(expected_updates) == state_manager->update_record_count, in test_effect_state_manager()
6396 "Got %u update records.\n", state_manager->update_record_count); in test_effect_state_manager()
6397 n = min(ARRAY_SIZE(expected_updates), state_manager->update_record_count); in test_effect_state_manager()
6400 ok(!memcmp(&expected_updates[i], &state_manager->update_record[i], in test_effect_state_manager()
6405 test_effect_state_manager_state_names[state_manager->update_record[i].state_op], in test_effect_state_manager()
6406 state_manager->update_record[i].param1, state_manager->update_record[i].param2); in test_effect_state_manager()
6418 refcount = state_manager->ID3DXEffectStateManager_iface.lpVtbl->Release( in test_effect_state_manager()
6419 &state_manager->ID3DXEffectStateManager_iface); in test_effect_state_manager()