skia2/experimental/SkV8Example
kkinnunen 973d92cf91 SampleApp: Remove SkWindow::setColorType
Remove SkWindow::setColorType, it is used wrong and inconsistently.

The color type is actually property of window backbuffer, used when the
window is painted with software. This is as opposed to a generic window
property that would affect all operation.

Similar to MSAA sample count for window GPU backbuffer, the bitmap
backbuffer color type should be a parameter of "attach" or "create
window" functions, should this property ever be added back.

The apps use the call wrong, setting the type as kRGBA_8888
or kBGRRA_8888 without no apparent rationale. These color types
are incorrect, as the raster surface can not work with these.

Reorganize the SkWindow::resize, since no change in SkWindow backbuffer size does not neccessarily mean that SkView would not need the call.

Do not show the sw backbuffer color type in SampleApp title, as
it does not really provide any information. On small screens,
kBGRA_8888_ColorType fills up the whole title.

BUG=skia:4733
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1595503002

Review URL: https://codereview.chromium.org/1595503002
2016-01-18 01:18:35 -08:00
..
compare Fixup references to the js files from the HTML files in SkV8Example. 2014-10-27 07:19:44 -07:00
js SkV8Sample: Now with Path2D and Path2DBuilder. 2014-10-29 05:33:28 -07:00
DrawingMethods.cpp SkV8Sample: Now with Path2D and Path2DBuilder. 2014-10-29 05:33:28 -07:00
DrawingMethods.h Start moving to the new canvas structure. 2014-10-27 10:27:01 -07:00
Global.cpp Doing the "using namespace" penance by adding in v8:: everywhere, like I should have to begin with. 2014-10-24 12:49:17 -07:00
Global.h Doing the "using namespace" penance by adding in v8:: everywhere, like I should have to begin with. 2014-10-24 12:49:17 -07:00
JsContext.cpp Doing the "using namespace" penance by adding in v8:: everywhere, like I should have to begin with. 2014-10-24 12:49:17 -07:00
JsContext.h Start moving to the new canvas structure. 2014-10-27 10:27:01 -07:00
Path2D.cpp SkV8Sample: Now with Path2D and Path2DBuilder. 2014-10-29 05:33:28 -07:00
Path2D.h SkV8Sample: Now with Path2D and Path2DBuilder. 2014-10-29 05:33:28 -07:00
Path2DBuilder.cpp SkV8Sample: Now with Path2D and Path2DBuilder. 2014-10-29 05:33:28 -07:00
Path2DBuilder.h SkV8Sample: Now with Path2D and Path2DBuilder. 2014-10-29 05:33:28 -07:00
README Move .js files to their own directory 2014-10-24 20:02:31 -07:00
SkV8Example.cpp SampleApp: Remove SkWindow::setColorType 2016-01-18 01:18:35 -08:00
SkV8Example.h C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} 2015-03-25 18:17:32 -07:00

Build Instructions
==================

V8 gyp is not quite standard and Chromium uses a Python script
to work around that, for now we have some manual steps to do
before you can compile and run this sample:

1. Uncomment out the v8 dep in DEPS and re-run gclient sync.
2. Run 'make dependencies' in third_pary/externals/v8.
3. Run 'make native' in third_pary/externals/v8.
4. Uncomment SkV8Example in gyp/everything.gyp.
5. Run 'ninja -C out/Debug SkV8Example'
6. Run the sample as:
     ./out/Debug/SkV8Example --infile experimental/SkV8Example/js/speed.js