Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1114)

Unified Diff: cc/picture.h

Issue 12471007: Part 8 of cc/ directory shuffles: resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/renderer.h ('k') | cc/picture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture.h
diff --git a/cc/picture.h b/cc/picture.h
deleted file mode 100644
index 942a9cbf7dc7d82e1b6aa0d328349d0a07cb5ee2..0000000000000000000000000000000000000000
--- a/cc/picture.h
+++ /dev/null
@@ -1,80 +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_H_
-#define CC_PICTURE_H_
-
-#include <list>
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-#include "cc/base/cc_export.h"
-#include "skia/ext/lazy_pixel_ref.h"
-#include "skia/ext/refptr.h"
-#include "third_party/skia/include/core/SkPixelRef.h"
-#include "third_party/skia/include/core/SkTileGridPicture.h"
-#include "ui/gfx/rect.h"
-
-namespace skia {
-class AnalysisCanvas;
-}
-
-namespace cc {
-
-class ContentLayerClient;
-struct RenderingStats;
-
-class CC_EXPORT Picture
- : public base::RefCountedThreadSafe<Picture> {
- public:
- static scoped_refptr<Picture> Create(gfx::Rect layer_rect);
-
- const gfx::Rect& LayerRect() const { return layer_rect_; }
- const gfx::Rect& OpaqueRect() const { return opaque_rect_; }
-
- // Get thread-safe clone for rasterizing with on a specific thread.
- scoped_refptr<Picture> GetCloneForDrawingOnThread(
- unsigned thread_index) const;
-
- // Make thread-safe clones for rasterizing with.
- void CloneForDrawing(int num_threads);
-
- // Record a paint operation. To be able to safely use this SkPicture for
- // playback on a different thread this can only be called once.
- void Record(ContentLayerClient*, RenderingStats*,
- const SkTileGridPicture::TileGridInfo& tileGridInfo);
-
- // Has Record() been called yet?
- bool HasRecording() const { return picture_.get() != NULL; }
-
- // Apply this contents scale and raster the content rect into the canvas.
- void Raster(SkCanvas* canvas, gfx::Rect content_rect, float contents_scale);
-
- void GatherPixelRefs(
- const gfx::Rect& layer_rect,
- std::list<skia::LazyPixelRef*>& pixel_ref_list);
-
- private:
- Picture(gfx::Rect layer_rect);
- // This constructor assumes SkPicture is already ref'd and transfers
- // ownership to this picture.
- Picture(const skia::RefPtr<SkPicture>&,
- gfx::Rect layer_rect,
- gfx::Rect opaque_rect);
- ~Picture();
-
- gfx::Rect layer_rect_;
- gfx::Rect opaque_rect_;
- skia::RefPtr<SkPicture> picture_;
-
- typedef std::vector<scoped_refptr<Picture> > PictureVector;
- PictureVector clones_;
-
- friend class base::RefCountedThreadSafe<Picture>;
- DISALLOW_COPY_AND_ASSIGN(Picture);
-};
-
-} // namespace cc
-
-#endif // CC_PICTURE_H_
« no previous file with comments | « cc/output/renderer.h ('k') | cc/picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698