MediaCodecPlayer implementation - stage 6 (respect audio permission)
[chromium-blink-merge.git] / cc / playback / raster_source_helper.h
blob9918703cd1fc04ef0ccaf6ea55fedc46c024f6ed
1 // Copyright 2014 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.
5 #ifndef CC_PLAYBACK_RASTER_SOURCE_HELPER_H_
6 #define CC_PLAYBACK_RASTER_SOURCE_HELPER_H_
8 #include "cc/base/cc_export.h"
9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/gfx/geometry/rect.h"
12 class SkCanvas;
14 namespace cc {
16 class CC_EXPORT RasterSourceHelper {
17 public:
18 static void PrepareForPlaybackToCanvas(SkCanvas* canvas,
19 const gfx::Rect& canvas_bitmap_rect,
20 const gfx::Rect& canvas_playback_rect,
21 const gfx::Rect& source_rect,
22 float contents_scale,
23 SkColor background_color,
24 bool clear_canvas_with_debug_color,
25 bool requires_clear);
28 } // namespace cc
30 #endif // CC_PLAYBACK_RASTER_SOURCE_HELPER_H_