Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 820556 - Kill mUsesDefaultProgram which is always true. r=snorp
Browse files Browse the repository at this point in the history
  • Loading branch information
staktrace committed Dec 11, 2012
1 parent 7bf4c78 commit 3a9edbd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions mobile/android/base/gfx/Layer.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public abstract class Layer {

protected Rect mPosition;
protected float mResolution;
protected boolean mUsesDefaultProgram = true;

public Layer() {
this(null);
Expand Down Expand Up @@ -133,10 +132,6 @@ public void setResolution(float newResolution) {
mNewResolution = newResolution;
}

public boolean usesDefaultProgram() {
return mUsesDefaultProgram;
}

/**
* Subclasses may override this method to perform custom layer updates. This will be called
* with the transaction lock held. Subclass implementations of this method must call the
Expand Down
6 changes: 0 additions & 6 deletions mobile/android/base/gfx/LayerRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -576,13 +576,7 @@ public void drawForeground() {
/* Draw any extra layers that were added (likely plugins) */
if (mExtraLayers.size() > 0) {
for (Layer layer : mExtraLayers) {
if (!layer.usesDefaultProgram())
deactivateDefaultProgram();

layer.draw(mPageContext);

if (!layer.usesDefaultProgram())
activateDefaultProgram();
}
}

Expand Down

0 comments on commit 3a9edbd

Please sign in to comment.