Пример #1
0
 private void setSurfaces(AccelSurface srcData, AccelSurface dstData) {
   // assert rq.lock.isHeldByCurrentThread();
   rq.ensureCapacityAndAlignment(20, 4);
   buf.putInt(SET_SURFACES);
   buf.putLong(srcData.getNativeOps());
   buf.putLong(dstData.getNativeOps());
 }
Пример #2
0
 private void setTransform(AffineTransform xform) {
   // assert rq.lock.isHeldByCurrentThread();
   rq.ensureCapacityAndAlignment(52, 4);
   buf.putInt(SET_TRANSFORM);
   buf.putDouble(xform.getScaleX());
   buf.putDouble(xform.getShearY());
   buf.putDouble(xform.getShearX());
   buf.putDouble(xform.getScaleY());
   buf.putDouble(xform.getTranslateX());
   buf.putDouble(xform.getTranslateY());
 }