diff options
author | tschmelcher@chromium.org <tschmelcher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-27 19:34:08 +0000 |
---|---|---|
committer | tschmelcher@chromium.org <tschmelcher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-27 19:34:08 +0000 |
commit | 29df8dc046057b3388149c979f14937ff5552c7c (patch) | |
tree | 68348b13e6a7bc9c32720bca67260b598e355163 /o3d/plugin | |
parent | 7c47289012373753a603ff76d15c85db7a0ae436 (diff) | |
download | chromium_src-29df8dc046057b3388149c979f14937ff5552c7c.zip chromium_src-29df8dc046057b3388149c979f14937ff5552c7c.tar.gz chromium_src-29df8dc046057b3388149c979f14937ff5552c7c.tar.bz2 |
O2D: Add an API for setting the texture filter.
TEST=loaded O2D and verified that choosing different filters gives different results
BUG=none
Review URL: http://codereview.chromium.org/6254021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72859 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/plugin')
-rw-r--r-- | o3d/plugin/idl/pattern.idl | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/o3d/plugin/idl/pattern.idl b/o3d/plugin/idl/pattern.idl index bed3daf..d8cbb6a7 100644 --- a/o3d/plugin/idl/pattern.idl +++ b/o3d/plugin/idl/pattern.idl @@ -1,5 +1,5 @@ /* - * Copyright 2010, Google Inc. + * Copyright 2011, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -38,6 +38,25 @@ namespace o2d { %] [nocpp, include="core/cross/cairo/pattern.h"] class Pattern : ObjectBase { %[ + Available resizing filters. + + \var Filter, + \li FAST, A high-performance filter, with quality similar to NEAREST + \li GOOD, A reasonable-performance filter, with quality similar to BILINEAR + \li BEST, The highest-quality available, performance may not be suitable + for interactive use + \li NEAREST, Nearest-neighbor filtering + \li BILINEAR, Linear interpolation in two dimensions + %] + enum Filter { + FAST, + GOOD, + BEST, + NEAREST, + BILINEAR + }; + + %[ Create a pattern that paints the content of a texture. \param pack The Pack to add the created object to. @@ -93,6 +112,11 @@ namespace o2d { double yy, double x0, double y0); + + %[ + The filter to use when resizing this Pattern. + %] + [setter] Filter filter; }; // Pattern } // namespace o2d |