Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: cc/resources/raster_source_helper.h

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/resources/raster_source.h ('k') | cc/resources/raster_source_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef CC_RESOURCES_RASTER_SOURCE_HELPER_H_
6 #define CC_RESOURCES_RASTER_SOURCE_HELPER_H_
7
8 #include "cc/base/cc_export.h"
9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/gfx/geometry/rect.h"
11
12 class SkCanvas;
13
14 namespace cc {
15
16 class CC_EXPORT RasterSourceHelper {
17 public:
18 static void PrepareForPlaybackToCanvas(SkCanvas* canvas,
19 const gfx::Rect& canvas_rect,
20 const gfx::Rect& source_rect,
21 float contents_scale,
22 SkColor background_color,
23 bool clear_canvas_with_debug_color,
24 bool requires_clear);
25 };
26
27 } // namespace cc
28
29 #endif // CC_RESOURCES_RASTER_SOURCE_HELPER_H_
OLDNEW
« no previous file with comments | « cc/resources/raster_source.h ('k') | cc/resources/raster_source_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698