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

Side by Side Diff: cc/raster/image_hijack_canvas_unittest.cc

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: Merge branch 'master' into ccpaint Created 3 years, 9 months 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/raster/image_hijack_canvas.cc ('k') | cc/raster/raster_buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/raster/image_hijack_canvas.cc ('k') | cc/raster/raster_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698