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

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

Issue 2823253004: Remove PaintCanvas::getBaseLayerSize. (Closed)
Patch Set: baselayersize: . 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 unified diff | Download patch
« no previous file with comments | « cc/paint/paint_canvas.h ('k') | cc/paint/skia_paint_canvas.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 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_SKIA_PAINT_CANVAS_H_ 5 #ifndef CC_PAINT_SKIA_PAINT_CANVAS_H_
6 #define CC_PAINT_SKIA_PAINT_CANVAS_H_ 6 #define CC_PAINT_SKIA_PAINT_CANVAS_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 20 matching lines...) Expand all
31 explicit SkiaPaintCanvas(SkiaPaintCanvas&& other); 31 explicit SkiaPaintCanvas(SkiaPaintCanvas&& other);
32 ~SkiaPaintCanvas() override; 32 ~SkiaPaintCanvas() override;
33 33
34 SkiaPaintCanvas& operator=(SkiaPaintCanvas&& other) = default; 34 SkiaPaintCanvas& operator=(SkiaPaintCanvas&& other) = default;
35 35
36 SkMetaData& getMetaData() override; 36 SkMetaData& getMetaData() override;
37 SkImageInfo imageInfo() const override; 37 SkImageInfo imageInfo() const override;
38 38
39 void flush() override; 39 void flush() override;
40 40
41 SkISize getBaseLayerSize() const override;
42 bool writePixels(const SkImageInfo& info, 41 bool writePixels(const SkImageInfo& info,
43 const void* pixels, 42 const void* pixels,
44 size_t row_bytes, 43 size_t row_bytes,
45 int x, 44 int x,
46 int y) override; 45 int y) override;
47 int save() override; 46 int save() override;
48 int saveLayer(const SkRect* bounds, const PaintFlags* flags) override; 47 int saveLayer(const SkRect* bounds, const PaintFlags* flags) override;
49 int saveLayerAlpha(const SkRect* bounds, U8CPU alpha) override; 48 int saveLayerAlpha(const SkRect* bounds, U8CPU alpha) override;
50 49
51 void restore() override; 50 void restore() override;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 private: 152 private:
154 SkCanvas* canvas_; 153 SkCanvas* canvas_;
155 std::unique_ptr<SkCanvas> owned_; 154 std::unique_ptr<SkCanvas> owned_;
156 155
157 DISALLOW_COPY_AND_ASSIGN(SkiaPaintCanvas); 156 DISALLOW_COPY_AND_ASSIGN(SkiaPaintCanvas);
158 }; 157 };
159 158
160 } // namespace cc 159 } // namespace cc
161 160
162 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_ 161 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_
OLDNEW
« no previous file with comments | « cc/paint/paint_canvas.h ('k') | cc/paint/skia_paint_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698