summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Dither.cpp
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2015-02-02 13:50:55 -0800
committerChris Craik <ccraik@google.com>2015-02-02 14:08:57 -0800
commit6c15ffa196fc9b7724c189d833c3435d8db12266 (patch)
treee326098c02f133197f6b507c390ff244114fb205 /libs/hwui/Dither.cpp
parent44eb2c00861098dd3e2950d923646814b4cc57c2 (diff)
downloadframeworks_base-6c15ffa196fc9b7724c189d833c3435d8db12266.zip
frameworks_base-6c15ffa196fc9b7724c189d833c3435d8db12266.tar.gz
frameworks_base-6c15ffa196fc9b7724c189d833c3435d8db12266.tar.bz2
Refactoring of Program ownership/lifecycle, and WIP Glop rendering path
Change-Id: I2549032790bddbc048b0bccc224ed8f386b4517c
Diffstat (limited to 'libs/hwui/Dither.cpp')
-rw-r--r--libs/hwui/Dither.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/Dither.cpp b/libs/hwui/Dither.cpp
index d637ec1..359c193 100644
--- a/libs/hwui/Dither.cpp
+++ b/libs/hwui/Dither.cpp
@@ -89,13 +89,13 @@ void Dither::clear() {
// Program management
///////////////////////////////////////////////////////////////////////////////
-void Dither::setupProgram(Program* program, GLuint* textureUnit) {
+void Dither::setupProgram(Program& program, GLuint* textureUnit) {
GLuint textureSlot = (*textureUnit)++;
mCaches.textureState().activateTexture(textureSlot);
bindDitherTexture();
- glUniform1i(program->getUniform("ditherSampler"), textureSlot);
+ glUniform1i(program.getUniform("ditherSampler"), textureSlot);
}
}; // namespace uirenderer