aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleApp.cpp
Commit message (Collapse)AuthorAge
...
* Simplify specification of default interfaceGravatar bsalomon@google.com2011-09-16
| | | | | | | | Review URL: http://codereview.appspot.com/5036045/ git-svn-id: http://skia.googlecode.com/svn/trunk@2276 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add 'K' to SampleApp to trigger animated perspective renderingGravatar bsalomon@google.com2011-09-08
| | | | | | | | Review URL: http://codereview.appspot.com/4967061/ git-svn-id: http://skia.googlecode.com/svn/trunk@2244 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make GrGLInterface a per-GrContext refcounted object rather than a globalGravatar bsalomon@google.com2011-08-19
| | | | | | | | Review URL: http://codereview.appspot.com/4901046/ git-svn-id: http://skia.googlecode.com/svn/trunk@2140 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fixed r2125. Identical change but also moves GrTesselatedPathRenderer.h to ↵Gravatar bsalomon@google.com2011-08-17
| | | | | | | | | | src dir. Verbal SGTM from Tom who reviewed the original version at: http://codereview.appspot.com/4894050/ git-svn-id: http://skia.googlecode.com/svn/trunk@2129 2bbb7eff-a529-9590-31e7-b0007b416f81
* Revert "Make GrDrawTarget.h and GrPathRenderer.h be private headers"Gravatar vandebo@chromium.org2011-08-16
| | | | | | | | | | | | This reverts commit r2125 Looks like GrPathRenderer.h is used from gpu/include/GrTesselatedPathRenderer.h There also seems to be a dependency tracking problem, because r2125 didn't go red, but the next revision did. Review URL: http://codereview.appspot.com/4896048 git-svn-id: http://skia.googlecode.com/svn/trunk@2127 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make GrDrawTarget.h and GrPathRenderer.h be private headersGravatar bsalomon@google.com2011-08-16
| | | | | | | | Review URL: http://codereview.appspot.com/4894050/ git-svn-id: http://skia.googlecode.com/svn/trunk@2125 2bbb7eff-a529-9590-31e7-b0007b416f81
* Added Debugger to Sample App, off by defaultGravatar yangsu@google.com2011-08-12
| | | | | | | | | Removed CocoaDebugger from experimental Slight changes to SkOSMenu Bug fixes for NetPipeReader and DrawingBoard git-svn-id: http://skia.googlecode.com/svn/trunk@2102 2bbb7eff-a529-9590-31e7-b0007b416f81
* Removed networking dependencies from SampleApp, Pipe now off by defaultGravatar yangsu@google.com2011-08-08
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2060 2bbb7eff-a529-9590-31e7-b0007b416f81
* Added transitions and net pipe to SampleApp, updated gyp filesGravatar yangsu@google.com2011-08-08
| | | | | | | | http://codereview.appspot.com/4839047/ http://codereview.appspot.com/4801080/ git-svn-id: http://skia.googlecode.com/svn/trunk@2059 2bbb7eff-a529-9590-31e7-b0007b416f81
* retool SkEvent to own its target ID or target procGravatar reed@google.com2011-08-04
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@2041 2bbb7eff-a529-9590-31e7-b0007b416f81
* Set up global options for SampleApp and now allows SampleApp to request menu ↵Gravatar yangsu@google.com2011-08-02
| | | | | | | | | items from the slides http://codereview.appspot.com/4807056/ git-svn-id: http://skia.googlecode.com/svn/trunk@2024 2bbb7eff-a529-9590-31e7-b0007b416f81
* cleanup GrGLTexture / GrGLRenderTarget cons. Make GrRenderTarget aware of ↵Gravatar bsalomon@google.com2011-07-29
| | | | | | | | | | its msaa sample count. Review URL: http://codereview.appspot.com/4833045/ git-svn-id: http://skia.googlecode.com/svn/trunk@1996 2bbb7eff-a529-9590-31e7-b0007b416f81
* Automatic update of all copyright notices to reflect new license terms.Gravatar epoger@google.com2011-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I have manually examined all of these diffs and restored a few files that seem to require manual adjustment. The following files still need to be modified manually, in a separate CL: android_sample/SampleApp/AndroidManifest.xml android_sample/SampleApp/res/layout/layout.xml android_sample/SampleApp/res/menu/sample.xml android_sample/SampleApp/res/values/strings.xml android_sample/SampleApp/src/com/skia/sampleapp/SampleApp.java android_sample/SampleApp/src/com/skia/sampleapp/SampleView.java experimental/CiCarbonSampleMain.c experimental/CocoaDebugger/main.m experimental/FileReaderApp/main.m experimental/SimpleCocoaApp/main.m experimental/iOSSampleApp/Shared/SkAlertPrompt.h experimental/iOSSampleApp/Shared/SkAlertPrompt.m experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig gpu/src/android/GrGLDefaultInterface_android.cpp gyp/common.gypi gyp_skia include/ports/SkHarfBuzzFont.h include/views/SkOSWindow_wxwidgets.h make.bat make.py src/opts/memset.arm.S src/opts/memset16_neon.S src/opts/memset32_neon.S src/opts/opts_check_arm.cpp src/ports/SkDebug_brew.cpp src/ports/SkMemory_brew.cpp src/ports/SkOSFile_brew.cpp src/ports/SkXMLParser_empty.cpp src/utils/ios/SkImageDecoder_iOS.mm src/utils/ios/SkOSFile_iOS.mm src/utils/ios/SkStream_NSData.mm tests/FillPathTest.cpp Review URL: http://codereview.appspot.com/4816058 git-svn-id: http://skia.googlecode.com/svn/trunk@1982 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove some cruft from SampleApp.cppGravatar bsalomon@google.com2011-07-14
| | | | | | | | Review URL: http://codereview.appspot.com/4724042 git-svn-id: http://skia.googlecode.com/svn/trunk@1858 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add DeviceManager to SampleWindowGravatar bsalomon@google.com2011-07-14
| | | | | | | Review URL: http://codereview.appspot.com/4715045/ git-svn-id: http://skia.googlecode.com/svn/trunk@1857 2bbb7eff-a529-9590-31e7-b0007b416f81
* Be sure to call context->flush() before we swapbuffers, otherwise we might missGravatar mike@reedtribe.org2011-07-07
| | | | | | | | | some deferred drawing calls (esp. text). SkGpuCanvas was doing this for us, so now we have to do it explicitly. git-svn-id: http://skia.googlecode.com/svn/trunk@1813 2bbb7eff-a529-9590-31e7-b0007b416f81
* make sure size change posts at sample app startup.Gravatar bsalomon@google.com2011-07-06
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1811 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix typo:Gravatar reed@google.com2011-07-06
| | | | | | | | | | | | this-make3DReady() should be this->make3DReady() git-svn-id: http://skia.googlecode.com/svn/trunk@1803 2bbb7eff-a529-9590-31e7-b0007b416f81
* always use grcontext to get the bits to the screenGravatar reed@google.com2011-07-06
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1802 2bbb7eff-a529-9590-31e7-b0007b416f81
* revert prev hack around make3DReadyGravatar reed@google.com2011-07-06
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1799 2bbb7eff-a529-9590-31e7-b0007b416f81
* force grcontext to be created at startupGravatar reed@google.com2011-07-06
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1798 2bbb7eff-a529-9590-31e7-b0007b416f81
* check-point for testing drawBitmap [raster,gpu] -> [raster,gpu]Gravatar reed@google.com2011-07-06
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1796 2bbb7eff-a529-9590-31e7-b0007b416f81
* Parse SampleApp command line for a test name. If an argument is passed toGravatar senorblanco@chromium.org2011-06-28
| | | | | | | | | | | SampleApp on the command line, interpret it as a test name. If it's a valid test, open that test at startup. Review URL: http://codereview.appspot.com/4661054/ git-svn-id: http://skia.googlecode.com/svn/trunk@1742 2bbb7eff-a529-9590-31e7-b0007b416f81
* Modified the iOS pdf data code to use steam.copytoData()Gravatar yangsu@google.com2011-06-24
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1721 2bbb7eff-a529-9590-31e7-b0007b416f81
* replace detach/getStream apis on dynamicwstream with SkDataGravatar reed@google.com2011-06-24
| | | | | | | | http://codereview.appspot.com/4657046/ git-svn-id: http://skia.googlecode.com/svn/trunk@1714 2bbb7eff-a529-9590-31e7-b0007b416f81
* Added helper methods for changing samples, getting sample titles, and ↵Gravatar yangsu@google.com2011-06-24
| | | | | | | | | extracting pdf Data http://codereview.appspot.com/4626073/ git-svn-id: http://skia.googlecode.com/svn/trunk@1704 2bbb7eff-a529-9590-31e7-b0007b416f81
* Unify handleTouch and handleClick in SampleApp.Gravatar Scroggo2011-06-22
| | | | | | | | | | | | | | | Allow each sample to handle clicks in Android SampleApp. Remove SampleWindow::handleTouch. Allow an SkWindow to have multiple clicks. Add an owner pointer to SkView::Click. Reviewed at http://codereview.appspot.com/4643052/ git-svn-id: http://skia.googlecode.com/svn/trunk@1673 2bbb7eff-a529-9590-31e7-b0007b416f81
* SampleApp fixes.Gravatar Scroggo2011-06-21
| | | | | | | | | | | | | | On Android, delete gWindow before calling application_term, avoiding a crash each time the app closes. Also make sure the screen is redrawn when resuming. On Linux, delete gWindow to avoid memory leak. In general, allow moving from sample 0 to the last sample. Reviewed at http://codereview.appspot.com/4639060 git-svn-id: http://skia.googlecode.com/svn/trunk@1661 2bbb7eff-a529-9590-31e7-b0007b416f81
* Add a way to save to PDF in SampleApp on Android and elsewhere.Gravatar Scroggo2011-06-21
| | | | | | | | | In Android, add the PDF file to downloads, so it can be opened. Reviewed at http://codereview.appspot.com/4638052/ git-svn-id: http://skia.googlecode.com/svn/trunk@1659 2bbb7eff-a529-9590-31e7-b0007b416f81
* Minor fixes for SampleApp.Gravatar Scroggo2011-06-17
| | | | | | | | | - Add a comment for invalidating in onSizeChange. - Call base constructor for SkOSWindow_Unix. - Call onSizeChange in SampleWindow constructor so fZoomCenter gets set. git-svn-id: http://skia.googlecode.com/svn/trunk@1627 2bbb7eff-a529-9590-31e7-b0007b416f81
* Use SkTouchGesture to handle pinch events in Android SampleApp.Gravatar Scroggo2011-06-17
| | | | | | | http://codereview.appspot.com/4631043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1624 2bbb7eff-a529-9590-31e7-b0007b416f81
* make SkDevice constructors explicit between offscreen and on/directGravatar reed@google.com2011-06-16
| | | | | | | | http://codereview.appspot.com/4632044/ git-svn-id: http://skia.googlecode.com/svn/trunk@1620 2bbb7eff-a529-9590-31e7-b0007b416f81
* Better fix for changing the viewport in sample app.Gravatar Scroggo2011-06-16
| | | | | | | | | | | | | | Create a platform description and base the size on the SkWindow in order to create a RenderTarget, which results in changing the viewport. This allows us to use only GR calls. In the Android sample app, fix the problem where nothing is drawn in the first frame, and default to drawing in GL. Reviewed at http://codereview.appspot.com/4642043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1615 2bbb7eff-a529-9590-31e7-b0007b416f81
* Fix the mac build of the SampleApp.Gravatar Scroggo2011-06-16
| | | | | | | | | | | My call to glViewport breaks the mac build, but benefits the Android and linux builds. Fix the mac build until I come up with a better solution. Reviewed at http://codereview.appspot.com/4628042/ git-svn-id: http://skia.googlecode.com/svn/trunk@1612 2bbb7eff-a529-9590-31e7-b0007b416f81
* Improvements to the SampleApp (primarily Android).Gravatar Scroggo2011-06-15
| | | | | | | | | | | | | | | | | | Reviewed at http://codereview.appspot.com/4587042/ Android - Added buttons for interaction without a keyboard. - Added the ability to zoom in to a specific point (roughly). - Added event handling (for showing a slideshow, for example). - Allow changing screen orientation - Updated README file, explaining how to build Multiplatform changes - Added SampleApp header file - Remove FPS when turning off measure FPS mode git-svn-id: http://skia.googlecode.com/svn/trunk@1596 2bbb7eff-a529-9590-31e7-b0007b416f81
* Updates to the Android SampleAppGravatar djsollen@google.com2011-06-13
| | | | | | | http://codereview.appspot.com/4602049/ git-svn-id: http://skia.googlecode.com/svn/trunk@1567 2bbb7eff-a529-9590-31e7-b0007b416f81
* Make linux sample app work on my laptop. Reviewed at ↵Gravatar Scroggo2011-06-08
| | | | | | http://codereview.appspot.com/4568050/ git-svn-id: http://skia.googlecode.com/svn/trunk@1539 2bbb7eff-a529-9590-31e7-b0007b416f81
* Added code to enable the pipe module to record to a fileGravatar yangsu@google.com2011-06-01
| | | | | | | http://codereview.appspot.com/4564052/ git-svn-id: http://skia.googlecode.com/svn/trunk@1469 2bbb7eff-a529-9590-31e7-b0007b416f81
* update to SampleViewGravatar reed@google.com2011-06-01
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1460 2bbb7eff-a529-9590-31e7-b0007b416f81
* Remove unnecessary call to unlock.Gravatar Scroggo2011-05-31
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1451 2bbb7eff-a529-9590-31e7-b0007b416f81
* Show fatbits mode in openGL. http://codereview.appspot.com/4515141/Gravatar Scroggo2011-05-25
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1426 2bbb7eff-a529-9590-31e7-b0007b416f81
* add cross-process option to gpipeGravatar reed@google.com2011-05-23
| | | | | | | | add unittests for reader32 and writer32 git-svn-id: http://skia.googlecode.com/svn/trunk@1397 2bbb7eff-a529-9590-31e7-b0007b416f81
* show consistent timings between debug and releaseGravatar reed@google.com2011-05-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1370 2bbb7eff-a529-9590-31e7-b0007b416f81
* lockPixels before looking at them in ZoomerGravatar reed@google.com2011-05-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1363 2bbb7eff-a529-9590-31e7-b0007b416f81
* add 'h' to tri-toggle font hintingGravatar reed@google.com2011-05-18
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1360 2bbb7eff-a529-9590-31e7-b0007b416f81
* fix uninitialized varGravatar reed@google.com2011-05-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1345 2bbb7eff-a529-9590-31e7-b0007b416f81
* add 'n' to tri-toggle bitmap-filter (LERP) on/off/neutralGravatar reed@google.com2011-05-17
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1344 2bbb7eff-a529-9590-31e7-b0007b416f81
* add 'p' to toggle on/off testing the pipeGravatar reed@google.com2011-05-12
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1317 2bbb7eff-a529-9590-31e7-b0007b416f81
* remove some dead code in pipesGravatar reed@google.com2011-05-11
| | | | | | | | | inherit from SampleView for more samples add L key to toggle using SkGPipe git-svn-id: http://skia.googlecode.com/svn/trunk@1296 2bbb7eff-a529-9590-31e7-b0007b416f81
* disable experimental TEST_GPIPEGravatar reed@google.com2011-05-05
| | | | git-svn-id: http://skia.googlecode.com/svn/trunk@1253 2bbb7eff-a529-9590-31e7-b0007b416f81