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

Unified Diff: runtime/bin/vmstats/bargraph.dart

Issue 13726010: Rename context2d to context2D. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | samples/solar/web/solar.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmstats/bargraph.dart
diff --git a/runtime/bin/vmstats/bargraph.dart b/runtime/bin/vmstats/bargraph.dart
index c35325385149e6d8ac3caccb79aeb3c165b8e855..865a5a8e68b35255448419df95c87becb261e5e8 100644
--- a/runtime/bin/vmstats/bargraph.dart
+++ b/runtime/bin/vmstats/bargraph.dart
@@ -38,7 +38,7 @@ class BarGraph {
void drawBarGraph() {
// Draw chart's outer box.
- var context = _canvas.context2d;
+ var context = _canvas.context2D;
context.beginPath();
context.strokeStyle = 'black';
// The '2's are the width of the line, even though 1 is specified.
@@ -76,7 +76,7 @@ class BarGraph {
void drawChart(int maxHeight, double scale) {
var dividerHeight = maxHeight ~/ NUM_DIVIDERS;
- var context = _canvas.context2d;
+ var context = _canvas.context2D;
context.beginPath();
var height = maxHeight.toInt();
var scaledY = dividerHeight * scale;
@@ -105,7 +105,7 @@ class BarGraph {
var y = INSIDE_MARGIN;
var w = _canvas.width - LEFT_MARGIN - RIGHT_MARGIN - INSIDE_MARGIN;
var h = (maxHeight * scale).ceil() - (2 * INSIDE_MARGIN);
- _canvas.context2d.clearRect(x, y, w, h);
+ _canvas.context2D.clearRect(x, y, w, h);
while (iterator.moveNext()) {
Sample s = iterator.current;
@@ -129,7 +129,7 @@ class BarGraph {
void drawVerticalSegment(int x, int y, int w, int h, String color,
num scale) {
- var context = _canvas.context2d;
+ var context = _canvas.context2D;
y = (y * scale).floor();
h = (h * scale).ceil();
context.beginPath();
« no previous file with comments | « no previous file | samples/solar/web/solar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698