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

Side by Side Diff: cc/resources/skpicture_content_layer_updater.h

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2011 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_RESOURCES_SKPICTURE_CONTENT_LAYER_UPDATER_H_
6 #define CC_RESOURCES_SKPICTURE_CONTENT_LAYER_UPDATER_H_
7
8 #include "cc/resources/content_layer_updater.h"
9 #include "skia/ext/refptr.h"
10 #include "third_party/skia/include/core/SkPicture.h"
11
12 class SkCanvas;
13
14 namespace cc {
15
16 class LayerPainter;
17
18 // This class records the content_rect into an SkPicture. Subclass provides
19 // SkCanvas to DrawPicture() for tile updating based on this recorded picture.
20 class SkPictureContentLayerUpdater : public ContentLayerUpdater {
21 protected:
22 SkPictureContentLayerUpdater(
23 scoped_ptr<LayerPainter> painter,
24 int layer_id);
25 ~SkPictureContentLayerUpdater() override;
26
27 void PrepareToUpdate(const gfx::Size& content_size,
28 const gfx::Rect& paint_rect,
29 const gfx::Size& tile_size,
30 float contents_width_scale,
31 float contents_height_scale) override;
32 void DrawPicture(SkCanvas* canvas);
33
34 private:
35 skia::RefPtr<SkPicture> picture_;
36
37 DISALLOW_COPY_AND_ASSIGN(SkPictureContentLayerUpdater);
38 };
39
40 } // namespace cc
41
42 #endif // CC_RESOURCES_SKPICTURE_CONTENT_LAYER_UPDATER_H_
OLDNEW
« no previous file with comments | « cc/resources/single_release_callback_impl.cc ('k') | cc/resources/skpicture_content_layer_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698