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

Side by Side Diff: sky/engine/core/painting/Canvas.idl

Issue 1151753009: Add Sky framework support for drawing images (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Run git cl format once more 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
« no previous file with comments | « sky/engine/core/painting/Canvas.cpp ('k') | sky/engine/core/painting/CanvasImage.h » ('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 // TODO(mpcomplete): Figure out a better SkMatrix representation. 5 // TODO(mpcomplete): Figure out a better SkMatrix representation.
6 interface Canvas { 6 interface Canvas {
7 // Height and width are used for culling optimizations and do not necessarily 7 // Height and width are used for culling optimizations and do not necessarily
8 // imply that the Canvas is backed by a buffer with any specific bounds. 8 // imply that the Canvas is backed by a buffer with any specific bounds.
9 readonly attribute float height; 9 readonly attribute float height;
10 readonly attribute float width; 10 readonly attribute float width;
(...skipping 10 matching lines...) Expand all
21 21
22 void clipRect(Rect rect); 22 void clipRect(Rect rect);
23 23
24 void drawPicture(Picture picture); 24 void drawPicture(Picture picture);
25 25
26 void drawPaint(Paint paint); 26 void drawPaint(Paint paint);
27 void drawRect(Rect rect, Paint paint); 27 void drawRect(Rect rect, Paint paint);
28 void drawOval(Rect rect, Paint paint); 28 void drawOval(Rect rect, Paint paint);
29 void drawCircle(float x, float y, float radius, Paint paint); 29 void drawCircle(float x, float y, float radius, Paint paint);
30 void drawPath(Path path, Paint paint); 30 void drawPath(Path path, Paint paint);
31 void drawImage(Image image, float x, float y, Paint paint);
31 }; 32 };
OLDNEW
« no previous file with comments | « sky/engine/core/painting/Canvas.cpp ('k') | sky/engine/core/painting/CanvasImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698