| Index: cc/picture_record.h
|
| diff --git a/cc/picture_record.h b/cc/picture_record.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b0bf576f5e0fa0e687acb9e5fda15b990d6fe857
|
| --- /dev/null
|
| +++ b/cc/picture_record.h
|
| @@ -0,0 +1,41 @@
|
| +// Copyright 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CC_PICTURE_RECORD_H_
|
| +#define CC_PICTURE_RECORD_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/memory/ref_counted.h"
|
| +#include "cc/cc_export.h"
|
| +#include "third_party/skia/include/core/SkPicture.h"
|
| +#include "ui/gfx/rect.h"
|
| +
|
| +namespace cc {
|
| +
|
| +class ContentLayerClient;
|
| +
|
| +class CC_EXPORT PictureRecord
|
| + : public base::RefCountedThreadSafe<PictureRecord> {
|
| +public:
|
| + scoped_refptr<PictureRecord> create(ContentLayerClient*, gfx::Rect);
|
| +
|
| + const gfx::Rect& rect();
|
| + scoped_refptr<PictureRecord> clone();
|
| +
|
| +protected:
|
| + PictureRecord();
|
| + ~PictureRecord();
|
| +
|
| + gfx::Rect m_rect;
|
| + SkPicture m_picture;
|
| +
|
| +private:
|
| + friend class base::RefCountedThreadSafe<PictureRecord>;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(PictureRecord);
|
| +};
|
| +
|
| +} // namespace cc
|
| +
|
| +#endif // CC_PICTURE_RECORD_H_
|
|
|