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

Side by Side Diff: cc/playback/discardable_image_map.h

Issue 1939143002: Remove all uses of skia::RefPtr and stale includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bad rebase Created 4 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
« no previous file with comments | « cc/layers/picture_image_layer.h ('k') | cc/playback/filter_display_item.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PLAYBACK_DISCARDABLE_IMAGE_MAP_H_ 5 #ifndef CC_PLAYBACK_DISCARDABLE_IMAGE_MAP_H_
6 #define CC_PLAYBACK_DISCARDABLE_IMAGE_MAP_H_ 6 #define CC_PLAYBACK_DISCARDABLE_IMAGE_MAP_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
12 #include "cc/base/rtree.h" 12 #include "cc/base/rtree.h"
13 #include "cc/playback/draw_image.h" 13 #include "cc/playback/draw_image.h"
14 #include "third_party/skia/include/core/SkCanvas.h" 14 #include "third_party/skia/include/core/SkCanvas.h"
15 #include "third_party/skia/include/core/SkPicture.h"
16 #include "third_party/skia/include/core/SkRefCnt.h" 15 #include "third_party/skia/include/core/SkRefCnt.h"
17 #include "ui/gfx/geometry/rect.h" 16 #include "ui/gfx/geometry/rect.h"
18 #include "ui/gfx/geometry/size.h" 17 #include "ui/gfx/geometry/size.h"
19 18
20 class SkImage;
21
22 namespace cc { 19 namespace cc {
23 20
24 // Helper function to apply the matrix to the rect and return the result. 21 // Helper function to apply the matrix to the rect and return the result.
25 SkRect MapRect(const SkMatrix& matrix, const SkRect& src); 22 SkRect MapRect(const SkMatrix& matrix, const SkRect& src);
26 23
27 // This class is used for generating discardable images data (see DrawImage 24 // This class is used for generating discardable images data (see DrawImage
28 // for the type of data it stores). It allows the client to query a particular 25 // for the type of data it stores). It allows the client to query a particular
29 // rect and get back a list of DrawImages in that rect. 26 // rect and get back a list of DrawImages in that rect.
30 class CC_EXPORT DiscardableImageMap { 27 class CC_EXPORT DiscardableImageMap {
31 public: 28 public:
(...skipping 25 matching lines...) Expand all
57 sk_sp<SkCanvas> BeginGeneratingMetadata(const gfx::Size& bounds); 54 sk_sp<SkCanvas> BeginGeneratingMetadata(const gfx::Size& bounds);
58 void EndGeneratingMetadata(); 55 void EndGeneratingMetadata();
59 56
60 std::vector<std::pair<DrawImage, gfx::Rect>> all_images_; 57 std::vector<std::pair<DrawImage, gfx::Rect>> all_images_;
61 RTree images_rtree_; 58 RTree images_rtree_;
62 }; 59 };
63 60
64 } // namespace cc 61 } // namespace cc
65 62
66 #endif // CC_PLAYBACK_DISCARDABLE_IMAGE_MAP_H_ 63 #endif // CC_PLAYBACK_DISCARDABLE_IMAGE_MAP_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_image_layer.h ('k') | cc/playback/filter_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698