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

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

Issue 2820273004: Revert of Remove PaintCanvas::getBaseLayerSize. (Closed)
Patch Set: 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;
41 bool writePixels(const SkImageInfo& info, 42 bool writePixels(const SkImageInfo& info,
42 const void* pixels, 43 const void* pixels,
43 size_t row_bytes, 44 size_t row_bytes,
44 int x, 45 int x,
45 int y) override; 46 int y) override;
46 int save() override; 47 int save() override;
47 int saveLayer(const SkRect* bounds, const PaintFlags* flags) override; 48 int saveLayer(const SkRect* bounds, const PaintFlags* flags) override;
48 int saveLayerAlpha(const SkRect* bounds, U8CPU alpha) override; 49 int saveLayerAlpha(const SkRect* bounds, U8CPU alpha) override;
49 50
50 void restore() override; 51 void restore() override;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 private: 156 private:
156 SkCanvas* canvas_; 157 SkCanvas* canvas_;
157 std::unique_ptr<SkCanvas> owned_; 158 std::unique_ptr<SkCanvas> owned_;
158 159
159 DISALLOW_COPY_AND_ASSIGN(SkiaPaintCanvas); 160 DISALLOW_COPY_AND_ASSIGN(SkiaPaintCanvas);
160 }; 161 };
161 162
162 } // namespace cc 163 } // namespace cc
163 164
164 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_ 165 #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