Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49eab2a8 authored by Derek Sollenberger's avatar Derek Sollenberger
Browse files

Update version for serialized view (e.g. Saved Page).

The update ensures that previous versions are deserialized and
played back using the appropriate version of Skia.

There are companion changes to this in...
  external/skia
  external/webkit

bug: 8019756
Change-Id: I8d6507a82fa9adee94c3cb6ab1eb52bc64e8fa72
parent 35654b61
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -31,7 +31,8 @@ class ViewStateSerializer {

    private static final int WORKING_STREAM_STORAGE = 16 * 1024;

    static final int VERSION = 1;
    // VERSION = 1 was for pictures encoded using a previous copy of libskia
    static final int VERSION = 2;

    static boolean serializeViewState(OutputStream stream, DrawData draw)
            throws IOException {