1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef SKIA_EXT_PIXEL_REF_UTILS_H_
6 #define SKIA_EXT_PIXEL_REF_UTILS_H_
10 #include "SkPicture.h"
15 class SK_API PixelRefUtils
{
18 struct PositionPixelRef
{
19 SkPixelRef
* pixel_ref
;
20 SkRect pixel_ref_rect
;
23 static void GatherDiscardablePixelRefs(
25 std::vector
<PositionPixelRef
>* pixel_refs
);
28 typedef std::vector
<PixelRefUtils::PositionPixelRef
> DiscardablePixelRefList
;