committed from https://codereview.appspot.com/
6492119/ for Thiago Farina <tfarina@chromium.org>
git-svn-id: http://skia.googlecode.com/svn/trunk@5552
2bbb7eff-a529-9590-31e7-
b0007b416f81
'../samplecode/SampleXfermodes.cpp',
'../samplecode/SampleXfermodesBlur.cpp',
'../samplecode/TransitionView.cpp',
+ '../samplecode/TransitionView.h',
# DrawingBoard
#'../experimental/DrawingBoard/SkColorPalette.h',
'../src/utils/SkInterpolator.cpp',
'../include/utils/SkInterpolator.h',
'../samplecode/TransitionView.cpp',
+ '../samplecode/TransitionView.h',
],
'sources!': [
'../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't compile
#include "SkGPipe.h"
#include "SamplePipeControllers.h"
+#include "TransitionView.h"
SK_DEFINE_INST_COUNT(SampleWindow::DeviceManager)
extern SkView* create_overview(int, const SkViewFactory*[]);
extern bool is_overview(SkView* view);
-extern SkView* create_transition(SkView*, SkView*, int);
extern bool is_transition(SkView* view);
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+#include "TransitionView.h"
+
#include "SampleCode.h"
#include "SkView.h"
#include "SkCanvas.h"
typedef SampleView INHERITED;
};
-// FIXME: this should go in a header
-SkView* create_transition(SkView* prev, SkView* next, int direction);
-
SkView* create_transition(SkView* prev, SkView* next, int direction) {
return SkNEW_ARGS(TransitionView, (prev, next, direction));
-};
+}