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

Side by Side Diff: sky/engine/core/painting/PaintingContext.h

Issue 1190123003: Decouple Canvas from DisplayList and map Picture and PictureRecorder more directly to their Skia co… (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebased version of previous patch Created 5 years, 6 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 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 SKY_ENGINE_CORE_PAINTING_PAINTINGCONTEXT_H_ 5 #ifndef SKY_ENGINE_CORE_PAINTING_PAINTINGCONTEXT_H_
6 #define SKY_ENGINE_CORE_PAINTING_PAINTINGCONTEXT_H_ 6 #define SKY_ENGINE_CORE_PAINTING_PAINTINGCONTEXT_H_
7 7
8 #include "sky/engine/core/painting/Canvas.h" 8 #include "sky/engine/core/painting/Canvas.h"
9 #include "sky/engine/wtf/Vector.h" 9 #include "sky/engine/wtf/Vector.h"
10 10
11 namespace blink { 11 namespace blink {
12 class Element; 12 class Element;
13 13
14 class PaintingContext : public Canvas { 14 class PaintingContext : public Canvas {
15 DEFINE_WRAPPERTYPEINFO();
16 public: 15 public:
17 ~PaintingContext() override; 16 ~PaintingContext() override;
18 static PassRefPtr<PaintingContext> create(PassRefPtr<Element> element, const FloatSize& size); 17 static PassRefPtr<PaintingContext> create(PassRefPtr<Element> element, const FloatSize& size);
19 18
20 void commit(); 19 void commit();
21 20
22 private: 21 private:
23 PaintingContext(PassRefPtr<Element> element, const FloatSize& size); 22 PaintingContext(PassRefPtr<Element> element, const FloatSize& size);
24 23
25 RefPtr<Element> m_element; 24 RefPtr<Element> m_element;
26 }; 25 };
27 26
28 } // namespace blink 27 } // namespace blink
29 28
30 #endif // SKY_ENGINE_CORE_PAINTING_PAINTINGCONTEXT_H_ 29 #endif // SKY_ENGINE_CORE_PAINTING_PAINTINGCONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698