diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2014-03-27 18:03:33 -0700 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2014-03-27 18:34:04 -0700 |
| commit | 74bf3e1983ab557d236ee548494694692b1b1810 (patch) | |
| tree | 334d21357f0a22becbd8702e0ee7d43e17880833 /src/skia-image.cpp | |
| parent | dce2ef51f242460df7e8526cb0625f8f16983a24 (diff) | |
Add device_config_t
This structure will be used for communicating various configuration
settings to the image, egl, and glx setup routines. For now just use it
for passing width/height and the surface type.
Diffstat (limited to 'src/skia-image.cpp')
| -rw-r--r-- | src/skia-image.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/skia-image.cpp b/src/skia-image.cpp index 22d962c..cd1747f 100644 --- a/src/skia-image.cpp +++ b/src/skia-image.cpp @@ -3,15 +3,16 @@ #include <SkBitmapDevice.h> #include "image.h" +#include "device_config.h" static image_state_t *state; SkBaseDevice * -create_skia_device_image (int width, int height) +create_skia_device_image (const device_config_t& config) { SkBitmap skia_bitmap; skia_bitmap.setConfig(SkBitmap::kARGB_8888_Config, - width, height); + config.width, config.height); skia_bitmap.allocPixels(); return new SkBitmapDevice (skia_bitmap); } |