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

Issue 16337012: Smallest possible desktop application that uses Skia to render stuff. (Closed)

Created:
7 years, 6 months ago by sglez
Modified:
7 years, 6 months ago
Reviewers:
caryclark
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Smallest possible desktop application that uses Skia to render stuff. Small Hello World smaple. Subclasses SkOSWindow. Committed: http://code.google.com/p/skia/source/detail?r=9657

Patch Set 1 #

Patch Set 2 : Removed dependencies. Added make target #

Patch Set 3 : Indentation fixes... #

Total comments: 31

Patch Set 4 : Code review changes #

Patch Set 5 : GPU support #

Total comments: 5

Patch Set 6 : Refactored into BaseExample class and a HelloSkia subclass #

Total comments: 3

Patch Set 7 : Presentation example #

Total comments: 28

Patch Set 8 : Initial support for OSX (not working yet). Code review fixes. #

Total comments: 1

Patch Set 9 : Changed file name #

Patch Set 10 : Fix ninja on OSX #

Patch Set 11 : Resizing support #

Patch Set 12 : Fix gyp file for windows #

Patch Set 13 : Animation and resizing fix? #

Patch Set 14 : Inval handling. Code cleanup. Drop changes to experimental.gyp #

Patch Set 15 : Fix OSX and Windows. #

Patch Set 16 : Fix speed hiccups in Windows #

Total comments: 21

Patch Set 17 : Update to Mike's fix. Code review. #

Total comments: 4

Patch Set 18 : Final nits #

Patch Set 19 : Fix OSX build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4162 lines, -0 lines) Patch
A experimental/SkiaExamples/BaseExample.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +58 lines, -0 lines 0 comments Download
A experimental/SkiaExamples/BaseExample.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +135 lines, -0 lines 0 comments Download
A experimental/SkiaExamples/HelloSkiaExample.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +113 lines, -0 lines 0 comments Download
A experimental/SkiaExamples/SkExampleNSView.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +13 lines, -0 lines 0 comments Download
A experimental/SkiaExamples/SkExampleNSView.mm View 1 2 3 4 5 6 7 8 1 chunk +28 lines, -0 lines 0 comments Download
A experimental/SkiaExamples/SkiaExamples.xib View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3703 lines, -0 lines 0 comments Download
A experimental/SkiaExamples/SkiaExamples-Info.plist View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +32 lines, -0 lines 0 comments Download
A gyp/SkiaExamples.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +76 lines, -0 lines 0 comments Download
M src/views/unix/SkOSWindow_Unix.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
caryclark
https://codereview.chromium.org/16337012/diff/4002/Makefile File Makefile (right): https://codereview.chromium.org/16337012/diff/4002/Makefile#newcode47 Makefile:47: HelloSkia \ This probably doesn't need to change, except ...
7 years, 6 months ago (2013-06-03 19:02:01 UTC) #1
sglez
https://codereview.chromium.org/16337012/diff/4002/Makefile File Makefile (right): https://codereview.chromium.org/16337012/diff/4002/Makefile#newcode47 Makefile:47: HelloSkia \ On 2013/06/03 19:02:01, caryclark wrote: > This ...
7 years, 6 months ago (2013-06-03 20:24:07 UTC) #2
caryclark
https://codereview.chromium.org/16337012/diff/4002/helloskia/HelloSkia.cpp File helloskia/HelloSkia.cpp (right): https://codereview.chromium.org/16337012/diff/4002/helloskia/HelloSkia.cpp#newcode25 helloskia/HelloSkia.cpp:25: SkOSWindow* create_sk_window(void* hwnd, int argc, char** argv) { Yes, ...
7 years, 6 months ago (2013-06-04 11:48:12 UTC) #3
sglez
Cary, Here is an update to the CL, adding OpenGL support On 2013/06/04 11:48:12, caryclark ...
7 years, 6 months ago (2013-06-04 22:59:36 UTC) #4
caryclark
Also, I'd like to start using this to create a simple presentation app that shows ...
7 years, 6 months ago (2013-06-05 11:55:33 UTC) #5
sglez
Did some refactoring. A presentation app would subclass BaseExample https://codereview.chromium.org/16337012/diff/12001/experimental/HelloSkia/HelloSkia.cpp File experimental/HelloSkia/HelloSkia.cpp (right): https://codereview.chromium.org/16337012/diff/12001/experimental/HelloSkia/HelloSkia.cpp#newcode65 experimental/HelloSkia/HelloSkia.cpp:65: ...
7 years, 6 months ago (2013-06-05 16:15:31 UTC) #6
caryclark
errors when building on Windows 1>------ Build started: Project: HelloSkia, Configuration: Debug Win32 ------ 1> ...
7 years, 6 months ago (2013-06-10 14:53:07 UTC) #7
caryclark
errors when building on Mac Build target HelloSkia CompileC ../xcodebuild/SkiaExamples.build/Debug/HelloSkia.build/Objects-normal/i386/Presentation.o ../experimental/SkiaExamples/Presentation.cpp normal i386 c++ com.apple.compilers.llvm.clang.1_0.compiler ...
7 years, 6 months ago (2013-06-10 15:00:09 UTC) #8
caryclark
https://codereview.chromium.org/16337012/diff/29001/experimental/SkiaExamples/BaseExample.cpp File experimental/SkiaExamples/BaseExample.cpp (right): https://codereview.chromium.org/16337012/diff/29001/experimental/SkiaExamples/BaseExample.cpp#newcode23 experimental/SkiaExamples/BaseExample.cpp:23: fType = kRaster_DeviceType; setupBackend also sets fType -- pick ...
7 years, 6 months ago (2013-06-10 15:48:40 UTC) #9
sglez
Cary, here are some corrections for the code review and some new code to create ...
7 years, 6 months ago (2013-06-11 04:24:38 UTC) #10
sglez
So, OSX is still on the way, but here is a commit that makes SkiaExamples ...
7 years, 6 months ago (2013-06-11 22:51:43 UTC) #11
caryclark
On 2013/06/11 22:51:43, sglez wrote: > So, OSX is still on the way, but here ...
7 years, 6 months ago (2013-06-12 16:03:46 UTC) #12
sglez
Updated the gyp file for windows. It compiles, runs and seems to work fine on ...
7 years, 6 months ago (2013-06-12 18:01:42 UTC) #13
sglez
Hi all, Here are some thoughts on the resizing issue, along with a workaround patch. ...
7 years, 6 months ago (2013-06-13 00:47:15 UTC) #14
sglez
Here are the latest changes. (CC'ing Mike) Removed the Presentation class. Turned HelloSkia.[cpp|h] into HelloSkia.cpp. ...
7 years, 6 months ago (2013-06-13 19:57:04 UTC) #15
sglez
Cary, Here's a patch that seems to fix the slowdowns on Windows.
7 years, 6 months ago (2013-06-14 18:11:49 UTC) #16
caryclark
https://codereview.chromium.org/16337012/diff/95001/experimental/SkiaExamples/BaseExample.cpp File experimental/SkiaExamples/BaseExample.cpp (right): https://codereview.chromium.org/16337012/diff/95001/experimental/SkiaExamples/BaseExample.cpp#newcode92 experimental/SkiaExamples/BaseExample.cpp:92: if (fType == kGPU_DeviceType && note if (fType ...
7 years, 6 months ago (2013-06-17 15:08:39 UTC) #17
sglez
https://codereview.chromium.org/16337012/diff/95001/experimental/SkiaExamples/BaseExample.cpp File experimental/SkiaExamples/BaseExample.cpp (right): https://codereview.chromium.org/16337012/diff/95001/experimental/SkiaExamples/BaseExample.cpp#newcode102 experimental/SkiaExamples/BaseExample.cpp:102: } On 2013/06/17 15:08:39, caryclark wrote: > I would ...
7 years, 6 months ago (2013-06-17 18:04:35 UTC) #18
caryclark
Looks really good. I found a couple of nits, but once you've run the trybots, ...
7 years, 6 months ago (2013-06-17 20:11:16 UTC) #19
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 6 months ago (2013-06-18 15:20:49 UTC) #20
caryclark
lgtm
7 years, 6 months ago (2013-06-18 15:29:34 UTC) #21
caryclark
lgtm
7 years, 6 months ago (2013-06-18 15:29:35 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/sglez@google.com/16337012/141001
7 years, 6 months ago (2013-06-18 15:30:51 UTC) #23
commit-bot: I haz the power
7 years, 6 months ago (2013-06-18 15:38:53 UTC) #24
Message was sent while issue was closed.
Change committed as 9657

Powered by Google App Engine
This is Rietveld 408576698