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

Unified Diff: skia/ext/pixel_ref_utils.h

Issue 111143005: cc: Gather and lock/unlock SkDiscardablePixelRefs instead of skia::LazyPixelRefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/lazy/discardable/ to fix cc_unittests Created 6 years, 11 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 | « skia/ext/lazy_pixel_ref_utils_unittest.cc ('k') | skia/ext/pixel_ref_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/pixel_ref_utils.h
diff --git a/skia/ext/pixel_ref_utils.h b/skia/ext/pixel_ref_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..3985a1fc8b31982cf84dc7ac13045a1cfdb7b174
--- /dev/null
+++ b/skia/ext/pixel_ref_utils.h
@@ -0,0 +1,32 @@
+// Copyright 2013 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 SKIA_EXT_PIXEL_REF_UTILS_H_
+#define SKIA_EXT_PIXEL_REF_UTILS_H_
+
+#include <vector>
+
+#include "SkPicture.h"
+#include "SkRect.h"
+
+namespace skia {
+
+class SK_API PixelRefUtils {
+ public:
+
+ struct PositionPixelRef {
+ SkPixelRef* pixel_ref;
+ SkRect pixel_ref_rect;
+ };
+
+ static void GatherDiscardablePixelRefs(
+ SkPicture* picture,
+ std::vector<PositionPixelRef>* pixel_refs);
+};
+
+typedef std::vector<PixelRefUtils::PositionPixelRef> DiscardablePixelRefList;
+
+} // namespace skia
+
+#endif
« no previous file with comments | « skia/ext/lazy_pixel_ref_utils_unittest.cc ('k') | skia/ext/pixel_ref_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698