| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 #include "cc/playback/image_hijack_canvas.h" | 4 #include "cc/raster/image_hijack_canvas.h" |
| 5 | 5 |
| 6 #include "cc/test/skia_common.h" | 6 #include "cc/test/skia_common.h" |
| 7 #include "cc/tiles/image_decode_cache.h" | 7 #include "cc/tiles/image_decode_cache.h" |
| 8 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 #include "third_party/skia/include/core/SkBitmap.h" | 10 #include "third_party/skia/include/core/SkBitmap.h" |
| 11 #include "third_party/skia/include/core/SkImage.h" | 11 #include "third_party/skia/include/core/SkImage.h" |
| 12 #include "third_party/skia/include/core/SkPath.h" | 12 #include "third_party/skia/include/core/SkPath.h" |
| 13 | 13 |
| 14 namespace cc { | 14 namespace cc { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 canvas.drawImageRect(image, SkRect::MakeXYWH(0, 0, 10, 10), | 78 canvas.drawImageRect(image, SkRect::MakeXYWH(0, 0, 10, 10), |
| 79 SkRect::MakeXYWH(10, 10, 10, 10), &paint); | 79 SkRect::MakeXYWH(10, 10, 10, 10), &paint); |
| 80 paint.setShader(image->makeShader(SkShader::kClamp_TileMode, | 80 paint.setShader(image->makeShader(SkShader::kClamp_TileMode, |
| 81 SkShader::kClamp_TileMode, nullptr)); | 81 SkShader::kClamp_TileMode, nullptr)); |
| 82 canvas.drawRect(SkRect::MakeXYWH(10, 10, 10, 10), paint); | 82 canvas.drawRect(SkRect::MakeXYWH(10, 10, 10, 10), paint); |
| 83 } | 83 } |
| 84 | 84 |
| 85 } // namespace | 85 } // namespace |
| 86 | 86 |
| 87 } // namespace cc | 87 } // namespace cc |
| OLD | NEW |