From a83476617999697763c3c02115d3d0f7ecfe050f Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Thu, 15 Jul 2010 04:33:51 +0000 Subject: 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 --- gfx/skbitmap_operations.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gfx/skbitmap_operations.h') 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_ -- cgit v1.1