~cemil-azizoglu/mir/fix-lp1589632

« back to all changes in this revision

Viewing changes to tests/unit-tests/graphics/android/test_hwc_layers.cpp

  • Committer: Tarmac
  • Author(s): Daniel van Vugt
  • Date: 2016-06-02 05:33:50 UTC
  • mfrom: (3463.3.21 no-as_float)
  • Revision ID: tarmac-20160602053350-ha3n63cg1f7lo0q0
Deprecate method 'as_float()' for integer-based types.

Aside from being redundant, it's misleading by giving the caller the
illusion of precision that's not really there.
.

Approved by Alan Griffiths, mir-ci-bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
312
312
    hwc_frect_t crop
313
313
    {
314
314
        0.0f, 0.0f,
315
 
        buffer_size.width.as_float(),
316
 
        buffer_size.height.as_float()
 
315
        static_cast<float>(buffer_size.width.as_int()),
 
316
        static_cast<float>(buffer_size.height.as_int())
317
317
    };
318
318
 
319
319
    hwc_rect_t screen_pos