Gecko:Layers: Difference between revisions

Jump to navigation Jump to search
Line 116: Line 116:
   // on its surface.
   // on its surface.
   Layer *CreateLayer(size, format, type);
   Layer *CreateLayer(size, format, type);
}
};


// These are operations that can be executed on all layers.
// These are operations that can be executed on all layers.
Line 136: Line 136:
   // used to apply a variety of effects to the layer when rendered.
   // used to apply a variety of effects to the layer when rendered.
   SetShader(shader);
   SetShader(shader);
}
};


// Layers exposing this interface allow access to the surface. Double
// Layers exposing this interface allow access to the surface. Double
Line 150: Line 150:
   // compositor to update the associated texture and redraw.
   // compositor to update the associated texture and redraw.
   Unlock();
   Unlock();
}
};


// Layers exposing this interface can have their hardware surface accessed,
// Layers exposing this interface can have their hardware surface accessed,
Line 160: Line 160:
   // locking/unlocking logic.
   // locking/unlocking logic.
   HardwareSurface *Surface();
   HardwareSurface *Surface();
}
};
Confirmed users
138

edits

Navigation menu