1. A method of processing a region that contains image data, the method comprising: accessing, by a host device, metadata associated with the region, the metadata storing an indication of a type of graphics command that was used to generate or modify the image data; determining whether the type of graphics command satisfies predetermined criteria, the predetermined criteria including at least one of a plurality of image rendering commands and whether the at least one of the plurality of image rendering commands involved no more than two colors; if the type of graphics command satisfies the predetermined criteria, choosing a compression algorithm for the region based on the type of graphics command used to generate or modify the image data; and applying the compression algorithm in the region, wherein choosing the compression algorithm based on the type of graphics command avoids choosing the compression algorithm based on content of the image data in the region.