blit.h 741 B

123456789101112131415161718192021222324252627
  1. // Copyright (c) 2011 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef UI_GFX_BLIT_H_
  5. #define UI_GFX_BLIT_H_
  6. #include "ui/gfx/gfx_export.h"
  7. #include "ui/gfx/native_widget_types.h"
  8. class SkCanvas;
  9. namespace gfx {
  10. class Rect;
  11. class Vector2d;
  12. // Scrolls the given subset of the given canvas by the given offset.
  13. // The canvas should not have a clip or a transform applied, since platforms
  14. // may implement those operations differently.
  15. GFX_EXPORT void ScrollCanvas(SkCanvas* canvas,
  16. const Rect& clip,
  17. const Vector2d& offset);
  18. } // namespace gfx
  19. #endif // UI_GFX_BLIT_H_