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

Unified Diff: cc/paint/discardable_image_store.h

Issue 2842333003: cc: Update discardable image metadata generation to get PaintImages. (Closed)
Patch Set: Created 3 years, 8 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
Index: cc/paint/discardable_image_store.h
diff --git a/cc/paint/discardable_image_store.h b/cc/paint/discardable_image_store.h
new file mode 100644
index 0000000000000000000000000000000000000000..66420aea06fda769ec33ed929f22f05910495bc4
--- /dev/null
+++ b/cc/paint/discardable_image_store.h
@@ -0,0 +1,33 @@
+// Copyright 2017 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_PAINT_DISCARDABLE_IMAGE_STORE_H_
+#define CC_PAINT_DISCARDABLE_IMAGE_STORE_H_
+
+#include "third_party/skia/include/core/SkCanvas.h"
+#include "third_party/skia/include/core/SkMatrix.h"
+#include "third_party/skia/include/core/SkRect.h"
+
+namespace cc {
+class PaintFlags;
+class PaintImage;
+
+class DiscardableImageStore {
vmpstr 2017/04/27 16:28:54 Why don't we just make this a concrete class?
Khushal 2017/04/27 22:06:02 Done.
+ public:
+ virtual ~DiscardableImageStore() {}
+
+ virtual void AddImage(const PaintImage& paint_image,
+ const SkRect& src,
+ const SkRect& rect,
+ const SkMatrix* local_matrix,
+ const PaintFlags& flags) = 0;
+
+ // This canvas is used only for tracking transform/clip/filter state from the
+ // non-drawing ops.
+ virtual SkCanvas* NoDrawCanvas() = 0;
+};
+
+} // namespace cc
+
+#endif // CC_PAINT_DISCARDABLE_IMAGE_STORE_H_

Powered by Google App Engine
This is Rietveld 408576698