op: move Ops internal methods and state to internal package ops

Merge package opconsts into ops as well; it only existed to break
import cycles.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-10-04 15:44:48 +02:00
parent 936c266b03
commit 391725b9d0
18 changed files with 558 additions and 561 deletions
+2 -2
View File
@@ -192,8 +192,8 @@ func areShapesEqual(shape1, shape2 clip.Op) bool {
shape1.Push(&ops1).Pop()
shape2.Push(&ops2).Pop()
var r1, r2 ops.Reader
r1.Reset(&ops1)
r2.Reset(&ops2)
r1.Reset(&ops1.Internal)
r2.Reset(&ops2.Internal)
for {
encOp1, ok1 := r1.Decode()
encOp2, ok2 := r2.Decode()