diff options
| author | 2011-02-02 16:46:46 -0800 | |
|---|---|---|
| committer | 2011-02-02 16:46:46 -0800 | |
| commit | 721f3a6ea3df863655b5b4d7af8c2049d35fb77a (patch) | |
| tree | c111a47647ae4730a16a0a82d0e0521c7f1c1c02 /services/surfaceflinger/LayerDim.cpp | |
| parent | 4d8a596665dd73105b79081665df02f36ba53f27 (diff) | |
| parent | 50b029d578fa06cd0733dcc7c69cb94f5f824908 (diff) | |
am 50b029d5: am 7ba35f5a: Merge "[3418265] apply layer transformations to the DimLayer." into honeycomb
* commit '50b029d578fa06cd0733dcc7c69cb94f5f824908':
[3418265] apply layer transformations to the DimLayer.
Diffstat (limited to 'services/surfaceflinger/LayerDim.cpp')
| -rw-r--r-- | services/surfaceflinger/LayerDim.cpp | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/services/surfaceflinger/LayerDim.cpp b/services/surfaceflinger/LayerDim.cpp index 11f8feb1ff69..f79166d8acca 100644 --- a/services/surfaceflinger/LayerDim.cpp +++ b/services/surfaceflinger/LayerDim.cpp @@ -30,29 +30,12 @@ namespace android { // --------------------------------------------------------------------------- -bool LayerDim::sUseTexture; -GLuint LayerDim::sTexId; -EGLImageKHR LayerDim::sImage; -int32_t LayerDim::sWidth; -int32_t LayerDim::sHeight; - -// --------------------------------------------------------------------------- - LayerDim::LayerDim(SurfaceFlinger* flinger, DisplayID display, const sp<Client>& client) : LayerBaseClient(flinger, display, client) { } -void LayerDim::initDimmer(SurfaceFlinger* flinger, uint32_t w, uint32_t h) -{ - sTexId = -1; - sImage = EGL_NO_IMAGE_KHR; - sWidth = w; - sHeight = h; - sUseTexture = false; -} - LayerDim::~LayerDim() { } @@ -84,15 +67,7 @@ void LayerDim::onDraw(const Region& clip) const #endif glDisable(GL_TEXTURE_2D); - GLshort w = sWidth; - GLshort h = sHeight; - const GLshort vertices[4][2] = { - { 0, 0 }, - { 0, h }, - { w, h }, - { w, 0 } - }; - glVertexPointer(2, GL_SHORT, 0, vertices); + glVertexPointer(2, GL_FLOAT, 0, mVertices); while (it != end) { const Rect& r = *it++; |