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

Side by Side Diff: cc/paint/discardable_image_store.h

Issue 2842333003: cc: Update discardable image metadata generation to get PaintImages. (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_PAINT_DISCARDABLE_IMAGE_STORE_H_
6 #define CC_PAINT_DISCARDABLE_IMAGE_STORE_H_
7
8 #include "third_party/skia/include/core/SkCanvas.h"
9 #include "third_party/skia/include/core/SkMatrix.h"
10 #include "third_party/skia/include/core/SkRect.h"
11
12 namespace cc {
13 class PaintFlags;
14 class PaintImage;
15
16 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.
17 public:
18 virtual ~DiscardableImageStore() {}
19
20 virtual void AddImage(const PaintImage& paint_image,
21 const SkRect& src,
22 const SkRect& rect,
23 const SkMatrix* local_matrix,
24 const PaintFlags& flags) = 0;
25
26 // This canvas is used only for tracking transform/clip/filter state from the
27 // non-drawing ops.
28 virtual SkCanvas* NoDrawCanvas() = 0;
29 };
30
31 } // namespace cc
32
33 #endif // CC_PAINT_DISCARDABLE_IMAGE_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698