0a7e5b7554
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
30 lines
464 B
C++
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
|
|
|
|
}
|