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

Unified Diff: samplecode/SampleApp.h

Issue 1763833002: Force tiles in SampleApp to integer boundaries. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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 | samplecode/SampleApp.cpp » ('j') | samplecode/SampleApp.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/SampleApp.h
diff --git a/samplecode/SampleApp.h b/samplecode/SampleApp.h
index d4157fa415ff5d4d766bb06656857c355d152e40..7ee07d86dd254ec5c96bfa249c2726231a1d24d8 100644
--- a/samplecode/SampleApp.h
+++ b/samplecode/SampleApp.h
@@ -129,6 +129,7 @@ public:
void setZoomCenter(float x, float y);
void changeZoomLevel(float delta);
+ void changeOffset(SkVector delta);
bool nextSample();
bool previousSample();
bool goToSample(int i);
@@ -172,6 +173,7 @@ private:
SkTouchGesture fGesture;
SkScalar fZoomLevel;
SkScalar fZoomScale;
+ SkVector fOffset;
DeviceType fDeviceType;
DeviceManager* fDevManager;
@@ -209,7 +211,6 @@ private:
int fMSAASampleCount;
- int fScrollTestX, fScrollTestY;
SkScalar fZoomCenterX, fZoomCenterY;
//Stores global settings
« no previous file with comments | « no previous file | samplecode/SampleApp.cpp » ('j') | samplecode/SampleApp.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698