Index: cc/picture_pile_impl.h |
diff --git a/cc/picture_pile_impl.h b/cc/picture_pile_impl.h |
deleted file mode 100644 |
index 6ecf9fa7ecc46a0192df84d8b9cf361e79492759..0000000000000000000000000000000000000000 |
--- a/cc/picture_pile_impl.h |
+++ /dev/null |
@@ -1,89 +0,0 @@ |
-// 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_PILE_IMPL_H_ |
-#define CC_PICTURE_PILE_IMPL_H_ |
- |
-#include <list> |
-#include <map> |
- |
-#include "cc/base/cc_export.h" |
-#include "cc/picture_pile_base.h" |
-#include "skia/ext/refptr.h" |
-#include "third_party/skia/include/core/SkPicture.h" |
- |
-namespace cc { |
-struct RenderingStats; |
- |
-class CC_EXPORT PicturePileImpl : public PicturePileBase { |
- public: |
- static scoped_refptr<PicturePileImpl> Create(); |
- static scoped_refptr<PicturePileImpl> CreateFromOther( |
- const PicturePileBase* other); |
- |
- // Get paint-safe version of this picture for a specific thread. |
- PicturePileImpl* GetCloneForDrawingOnThread(unsigned thread_index) const; |
- |
- // Raster a subrect of this PicturePileImpl into the given canvas. |
- // It's only safe to call paint on a cloned version. |
- // It is assumed that contentsScale has already been applied to this canvas. |
- void Raster( |
- SkCanvas* canvas, |
- gfx::Rect canvas_rect, |
- float contents_scale, |
- int64* total_pixels_rasterized); |
- |
- void GatherPixelRefs( |
- gfx::Rect content_rect, |
- float contents_scale, |
- std::list<skia::LazyPixelRef*>& pixel_refs); |
- |
- skia::RefPtr<SkPicture> GetFlattenedPicture(); |
- |
- struct Analysis { |
- Analysis(); |
- |
- bool is_solid_color; |
- bool is_transparent; |
- bool is_cheap_to_raster; |
- SkColor solid_color; |
- }; |
- |
- void AnalyzeInRect(const gfx::Rect& content_rect, |
- float contents_scale, |
- Analysis* analysis); |
- |
- protected: |
- friend class PicturePile; |
- |
- PicturePileImpl(); |
- PicturePileImpl(const PicturePileBase* other); |
- virtual ~PicturePileImpl(); |
- |
- private: |
- class ClonesForDrawing { |
- public: |
- ClonesForDrawing(const PicturePileImpl* pile, int num_threads); |
- ~ClonesForDrawing(); |
- |
- typedef std::vector<scoped_refptr<PicturePileImpl> > PicturePileVector; |
- PicturePileVector clones_; |
- }; |
- |
- static scoped_refptr<PicturePileImpl> CreateCloneForDrawing( |
- const PicturePileImpl* other, unsigned thread_index); |
- |
- PicturePileImpl(const PicturePileImpl* other, unsigned thread_index); |
- |
- // Once instantiated, |clones_for_drawing_| can't be modified. |
- // This guarantees thread-safe access during the life |
- // time of a PicturePileImpl instance. |
- const ClonesForDrawing clones_for_drawing_; |
- |
- DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
-}; |
- |
-} // namespace cc |
- |
-#endif // CC_PICTURE_PILE_IMPL_H_ |