diff options
author | Mathias Agopian <mathias@google.com> | 2012-07-12 14:25:33 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-07-19 14:14:58 -0700 |
commit | a49126087b4494f4ef50873f3a3f6727265f6621 (patch) | |
tree | 0f44f4ad7766f4a8e0f1cb94d7e8641f8d45a79e /services/surfaceflinger/Layer.cpp | |
parent | 3b1d2b6b2bbfb5df46b1059ec52360974e6f1428 (diff) | |
download | frameworks_native-a49126087b4494f4ef50873f3a3f6727265f6621.zip frameworks_native-a49126087b4494f4ef50873f3a3f6727265f6621.tar.gz frameworks_native-a49126087b4494f4ef50873f3a3f6727265f6621.tar.bz2 |
factor EGL/GL and surface creation out of DisplayHardware
Change-Id: Icd85a6a4caad06f056578008af3e21666fa8b1f4
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r-- | services/surfaceflinger/Layer.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index a09b5c7..b2f2683 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -182,11 +182,8 @@ status_t Layer::setBuffers( uint32_t w, uint32_t h, return err; } - // the display's pixel format - // XXX: we shouldn't rely on the DisplayHardware to do this - const DisplayHardware& hw(mFlinger->getDefaultDisplayHardware()); uint32_t const maxSurfaceDims = min( - hw.getMaxTextureSize(), hw.getMaxViewportDims()); + mFlinger->getMaxTextureSize(), mFlinger->getMaxViewportDims()); // never allow a surface larger than what our underlying GL implementation // can handle. |