diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 04:33:51 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 04:33:51 +0000 |
commit | a83476617999697763c3c02115d3d0f7ecfe050f (patch) | |
tree | 8a9ed3a54b3fa5db28dd894413d79b3850bb909a /gfx/skbitmap_operations.h | |
parent | 2c79974a4526a43c2f33c42832c6817bd4e1d7f3 (diff) | |
download | chromium_src-a83476617999697763c3c02115d3d0f7ecfe050f.zip chromium_src-a83476617999697763c3c02115d3d0f7ecfe050f.tar.gz chromium_src-a83476617999697763c3c02115d3d0f7ecfe050f.tar.bz2 |
Add a function to scroll a platform canvas. This uses the platform scroll
functions when available, and on Linux implements a simple manual scroll
function since Cairo/Skia doesn't provide one.
BUG=none
TEST=included unit test
Review URL: http://codereview.chromium.org/2967008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52442 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gfx/skbitmap_operations.h')
-rw-r--r-- | gfx/skbitmap_operations.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gfx/skbitmap_operations.h b/gfx/skbitmap_operations.h index ec55e55..1308308 100644 --- a/gfx/skbitmap_operations.h +++ b/gfx/skbitmap_operations.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef APP_GFX_SKBITMAP_OPERATIONS_H_ -#define APP_GFX_SKBITMAP_OPERATIONS_H_ +#ifndef GFX_SKBITMAP_OPERATIONS_H_ +#define GFX_SKBITMAP_OPERATIONS_H_ #include "gfx/color_utils.h" #include "testing/gtest/include/gtest/gtest_prod.h" @@ -81,6 +81,7 @@ class SkBitmapOperations { // Makes a bitmap half has large in each direction by averaging groups of // 4 pixels. This is one step in generating a mipmap. static SkBitmap DownsampleByTwo(const SkBitmap& bitmap); + private: SkBitmapOperations(); // Class for scoping only. @@ -88,4 +89,4 @@ class SkBitmapOperations { FRIEND_TEST(SkBitmapOperationsTest, DownsampleByTwoSmall); }; -#endif // APP_GFX_SKBITMAP_OPERATIONS_H_ +#endif // GFX_SKBITMAP_OPERATIONS_H_ |