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

Unified Diff: cc/test/solid_color_content_layer_client.cc

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/skia_common.cc ('k') | cc/tiles/tile_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/solid_color_content_layer_client.cc
diff --git a/cc/test/solid_color_content_layer_client.cc b/cc/test/solid_color_content_layer_client.cc
index 58e4ad271cd9ff4f28a325bd41d4b4d0b45bea1c..cfbcb6976d7481afa928a168ce023974f75dc417 100644
--- a/cc/test/solid_color_content_layer_client.cc
+++ b/cc/test/solid_color_content_layer_client.cc
@@ -8,9 +8,9 @@
#include "cc/playback/display_item_list_settings.h"
#include "cc/playback/drawing_display_item.h"
-#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkPaint.h"
-#include "third_party/skia/include/core/SkPictureRecorder.h"
+#include "skia/ext/cdl_paint.h"
+#include "skia/ext/cdl_picture_recorder.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/skia_util.h"
@@ -24,23 +24,23 @@ gfx::Rect SolidColorContentLayerClient::PaintableRegion() {
scoped_refptr<DisplayItemList>
SolidColorContentLayerClient::PaintContentsToDisplayList(
PaintingControlSetting painting_control) {
- SkPictureRecorder recorder;
+ CdlPictureRecorder recorder;
gfx::Rect clip(PaintableRegion());
- SkCanvas* canvas = recorder.beginRecording(gfx::RectToSkRect(clip));
+ CdlCanvas* canvas = recorder.beginRecording(gfx::RectToSkRect(clip));
canvas->clear(SK_ColorTRANSPARENT);
if (border_size_ != 0) {
- SkPaint paint;
- paint.setStyle(SkPaint::kFill_Style);
+ CdlPaint paint;
+ paint.setStyle(CdlPaint::kFill_Style);
paint.setColor(border_color_);
canvas->drawRect(
SkRect::MakeXYWH(clip.x(), clip.y(), clip.width(), clip.height()),
paint);
}
- SkPaint paint;
- paint.setStyle(SkPaint::kFill_Style);
+ CdlPaint paint;
+ paint.setStyle(CdlPaint::kFill_Style);
paint.setColor(color_);
canvas->drawRect(
SkRect::MakeXYWH(clip.x() + border_size_, clip.y() + border_size_,
« no previous file with comments | « cc/test/skia_common.cc ('k') | cc/tiles/tile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698