[Ozone-Dri] Do not call AddFramebuffer with cursor buffers
commite7c6a45bed64ad12a3cbfa6be18c9f63694a5cd4
authordnicoara <dnicoara@chromium.org>
Wed, 25 Feb 2015 23:46:29 +0000 (25 15:46 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 25 Feb 2015 23:47:39 +0000 (25 23:47 +0000)
tree12c7cdacb57ae5d99f1de10623568bbfdfbea5ef
parent1da5f7f70ea6dc7dd0667ea78637802c76305f5a
[Ozone-Dri] Do not call AddFramebuffer with cursor buffers

Drivers may establish minimum sizes for the modesetting buffers. Since
cursor buffers are treated differently by the DRM API, they do not
require to be registered. Registering them on drivers with tight lower
bounds will fail since cursor buffers tend to be small.

BUG=none

Review URL: https://codereview.chromium.org/959953002

Cr-Commit-Position: refs/heads/master@{#318150}
ui/ozone/platform/dri/dri_buffer.cc
ui/ozone/platform/dri/dri_buffer.h
ui/ozone/platform/dri/dri_surface.cc
ui/ozone/platform/dri/dri_surface_unittest.cc
ui/ozone/platform/dri/dri_window_delegate_impl.cc