skia2/experimental/webtry/result.cpp
commit-bot@chromium.org 0a7e5b7554 Add the ability to select a source image to use in the code.
A much farther ranging change than I suspected.

Basically add a 'source' integer to every Try, store that in the database with every Try, add the source to the computation of the hash, and load and use the 'source' value when navigating history.

BUG=skia:
R=mtklein@google.com

Author: jcgregorio@google.com

Review URL: https://codereview.chromium.org/294903017

git-svn-id: http://skia.googlecode.com/svn/trunk@14960 2bbb7eff-a529-9590-31e7-b0007b416f81
2014-05-29 15:58:00 +00:00

30 lines
464 B
C++

#include "SkCanvas.h"
#include "SkData.h"
#include "SkForceLinking.h"
#include "SkGraphics.h"
#include "SkImageEncoder.h"
#include "SkImageInfo.h"
#include "SkStream.h"
#include "SkSurface.h"
SkBitmap source;
void draw(SkCanvas* canvas) {
#line 1
SkPaint p;
#line 2
p.setColor(SK_ColorRED);
#line 3
p.setAntiAlias(true);
#line 4
p.setStyle(SkPaint::kStroke_Style);
#line 5
p.setStrokeWidth(10);
#line 6
#line 7
canvas->drawLine(20, 20, 100, 100, p);
#line 8
}