blob: 9918703cd1fc04ef0ccaf6ea55fedc46c024f6ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_PLAYBACK_RASTER_SOURCE_HELPER_H_
#define CC_PLAYBACK_RASTER_SOURCE_HELPER_H_
#include "cc/base/cc_export.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/geometry/rect.h"
class SkCanvas;
namespace cc {
class CC_EXPORT RasterSourceHelper {
public:
static void PrepareForPlaybackToCanvas(SkCanvas* canvas,
const gfx::Rect& canvas_bitmap_rect,
const gfx::Rect& canvas_playback_rect,
const gfx::Rect& source_rect,
float contents_scale,
SkColor background_color,
bool clear_canvas_with_debug_color,
bool requires_clear);
};
} // namespace cc
#endif // CC_PLAYBACK_RASTER_SOURCE_HELPER_H_
|