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

Side by Side Diff: include/views/SkTouchGesture.h

Issue 1811613004: Change SkTime::GetMSecs to double; ensure values stored in SkMSec do not overflow. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Rebase. Created 4 years, 9 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 | « include/views/SkEvent.h ('k') | samplecode/SampleClipDrawMatch.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef SkTouchGesture_DEFINED 8 #ifndef SkTouchGesture_DEFINED
9 #define SkTouchGesture_DEFINED 9 #define SkTouchGesture_DEFINED
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 kEmpty_State, 48 kEmpty_State,
49 kTranslate_State, 49 kTranslate_State,
50 kZoom_State, 50 kZoom_State,
51 }; 51 };
52 52
53 struct Rec { 53 struct Rec {
54 void* fOwner; 54 void* fOwner;
55 float fStartX, fStartY; 55 float fStartX, fStartY;
56 float fPrevX, fPrevY; 56 float fPrevX, fPrevY;
57 float fLastX, fLastY; 57 float fLastX, fLastY;
58 SkMSec fPrevT, fLastT; 58 float fPrevT, fLastT;
59 }; 59 };
60 SkTDArray<Rec> fTouches; 60 SkTDArray<Rec> fTouches;
61 61
62 State fState; 62 State fState;
63 SkMatrix fLocalM, fGlobalM; 63 SkMatrix fLocalM, fGlobalM;
64 SkFlingState fFlinger; 64 SkFlingState fFlinger;
65 SkMSec fLastUpT; 65 double fLastUpMillis;
66 SkPoint fLastUpP; 66 SkPoint fLastUpP;
67 67
68 68
69 void flushLocalM(); 69 void flushLocalM();
70 int findRec(void* owner) const; 70 int findRec(void* owner) const;
71 void appendNewRec(void* owner, float x, float y); 71 void appendNewRec(void* owner, float x, float y);
72 float computePinch(const Rec&, const Rec&); 72 float computePinch(const Rec&, const Rec&);
73 float limitTotalZoom(float scale) const; 73 float limitTotalZoom(float scale) const;
74 bool handleDblTap(float, float); 74 bool handleDblTap(float, float);
75 }; 75 };
76 76
77 #endif 77 #endif
OLDNEW
« no previous file with comments | « include/views/SkEvent.h ('k') | samplecode/SampleClipDrawMatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698