fdabcb511d
Review URL: https://codereview.appspot.com/6878050 git-svn-id: http://skia.googlecode.com/svn/trunk@6671 2bbb7eff-a529-9590-31e7-b0007b416f81
32 lines
873 B
C++
32 lines
873 B
C++
/*
|
|
* Copyright 2012 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef SkPictureUtils_DEFINED
|
|
#define SkPictureUtils_DEFINED
|
|
|
|
#include "SkPicture.h"
|
|
|
|
class SkData;
|
|
struct SkRect;
|
|
|
|
class SK_API SkPictureUtils {
|
|
public:
|
|
/**
|
|
* Given a rectangular visible "window" into the picture, return an array
|
|
* of SkPixelRefs that might intersect that area. To keep the call fast,
|
|
* the returned list is not guaranteed to be exact, so it may miss some,
|
|
* and it may return false positives.
|
|
*
|
|
* The pixelrefs returned in the SkData are already owned by the picture,
|
|
* so the returned pointers are only valid while the picture is in scope
|
|
* and remains unchanged.
|
|
*/
|
|
static SkData* GatherPixelRefs(SkPicture* pict, const SkRect& area);
|
|
};
|
|
|
|
#endif
|