зеркало из https://github.com/mozilla/moz-skia.git
Add a header file for TransitionView.cpp
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
This commit is contained in:
Родитель
39362527e9
Коммит
6a12178fb3
|
@ -104,6 +104,7 @@
|
|||
'../samplecode/SampleXfermodes.cpp',
|
||||
'../samplecode/SampleXfermodesBlur.cpp',
|
||||
'../samplecode/TransitionView.cpp',
|
||||
'../samplecode/TransitionView.h',
|
||||
|
||||
# DrawingBoard
|
||||
#'../experimental/DrawingBoard/SkColorPalette.h',
|
||||
|
|
|
@ -133,6 +133,7 @@
|
|||
'../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
|
||||
|
|
|
@ -37,6 +37,7 @@ class GrContext;
|
|||
|
||||
#include "SkGPipe.h"
|
||||
#include "SamplePipeControllers.h"
|
||||
#include "TransitionView.h"
|
||||
|
||||
SK_DEFINE_INST_COUNT(SampleWindow::DeviceManager)
|
||||
|
||||
|
@ -80,7 +81,6 @@ SkTDArray<char> gTempDataStore;
|
|||
|
||||
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);
|
||||
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
* 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"
|
||||
|
@ -186,9 +188,6 @@ private:
|
|||
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));
|
||||
};
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче