OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2014 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 #include "SkTypes.h" |
| 9 |
| 10 class SkCanvas; |
| 11 class SkCanvasState; |
| 12 class SkPaint; |
| 13 class SkRegion; // for now... |
| 14 |
| 15 /* |
| 16 * Helper function to perform drawing to an SkCanvas. Used by both |
| 17 * test_complex_layers and complex_layers_draw_from_canvas_state. |
| 18 */ |
| 19 void complex_layers_draw(SkCanvas* canvas, float left, float top, |
| 20 float right, float bottom, int32_t spacer); |
| 21 |
| 22 /* |
| 23 * Create an SkCanvas from state and draw to it. Return true on success. |
| 24 * Used by test_complex_layers test in CanvasStateTest. Marked as extern |
| 25 * so it can be called from a separate library. |
| 26 */ |
| 27 extern "C" bool complex_layers_draw_from_canvas_state(SkCanvasState* state, |
| 28 float left, float top, float right, float bottom, int32_t spacer); |
| 29 |
| 30 void test_complex_clips_draw(SkCanvas* canvas, int32_t left, int32_t top, |
| 31 int32_t right, int32_t bottom, int32_t clipOp, const SkRegion& localRegi
on); |
| 32 |
| 33 // FIXME: Don't use SkRegion... |
| 34 extern "C" bool test_complex_clips_draw_from_canvas_state(SkCanvasState* state,
int32_t left, |
| 35 int32_t top, int32_t right, int32_t bottom, int32_t clipOp, const SkRegi
on* localRegion); |
OLD | NEW |