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

Unified Diff: cc/test/solid_color_content_layer_client.cc

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Clean up comments, fix mac build Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
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..42030d61c82f03614605d60ff4f9a1d7ed9457a2 100644
--- a/cc/test/solid_color_content_layer_client.cc
+++ b/cc/test/solid_color_content_layer_client.cc
@@ -6,11 +6,11 @@
#include <stddef.h>
+#include "cc/paint/paint_canvas.h"
+#include "cc/paint/paint_flags.h"
+#include "cc/paint/paint_recorder.h"
#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 "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;
+ PaintRecorder recorder;
gfx::Rect clip(PaintableRegion());
- SkCanvas* canvas = recorder.beginRecording(gfx::RectToSkRect(clip));
+ PaintCanvas* canvas = recorder.beginRecording(gfx::RectToSkRect(clip));
canvas->clear(SK_ColorTRANSPARENT);
if (border_size_ != 0) {
- SkPaint paint;
- paint.setStyle(SkPaint::kFill_Style);
+ PaintFlags paint;
+ paint.setStyle(PaintFlags::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);
+ PaintFlags paint;
+ paint.setStyle(PaintFlags::kFill_Style);
paint.setColor(color_);
canvas->drawRect(
SkRect::MakeXYWH(clip.x() + border_size_, clip.y() + border_size_,

Powered by Google App Engine
This is Rietveld 408576698