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

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

Issue 2857923004: cc: Keep PaintImage in DrawImage. (Closed)
Patch Set: rebased 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_PAINT_IMAGE_ID_H_ 5 #ifndef CC_PAINT_IMAGE_ID_H_
6 #define CC_PAINT_IMAGE_ID_H_ 6 #define CC_PAINT_IMAGE_ID_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <unordered_set> 9 #include <unordered_set>
10 10
11 #include "base/containers/flat_set.h" 11 #include "base/containers/flat_set.h"
12 #include "cc/paint/paint_image.h"
12 13
13 namespace cc { 14 namespace cc {
14 15
15 using ImageId = uint32_t; 16 using ImageId = PaintImage::Id;
vmpstr 2017/05/12 22:15:42 I just want to use PaintImage::Id
Khushal 2017/05/13 02:45:50 Do you mind if that is in a follow-up patch?
vmpstr 2017/05/15 15:02:55 I'd prefer we do this here.
Khushal 2017/05/15 21:22:14 Done.
16 using ImageIdFlatSet = base::flat_set<ImageId>; 17 using ImageIdFlatSet = base::flat_set<ImageId>;
17 18
19 // TODO(khushalsagar): These are only used by the hijack canvas since it uses
20 // an SkCanvas to replace images. Remove once that moves to PaintOpBuffer.
21 using SkImageId = uint32_t;
22 using SkImageIdFlatSet = base::flat_set<SkImageId>;
23
18 } // namespace cc 24 } // namespace cc
19 25
20 #endif // CC_PAINT_IMAGE_ID_H_ 26 #endif // CC_PAINT_IMAGE_ID_H_
OLDNEW
« no previous file with comments | « cc/paint/draw_image.cc ('k') | cc/paint/paint_image.h » ('j') | cc/raster/image_hijack_canvas.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698