Rename paint data structures
This patch typedefs a number of skia data structures used in painting in
Blink and ui.
SkCanvas -> PaintCanvas
SkSurface -> PaintSurface
SkPicture -> PaintRecord
SkPictureRecorder -> PaintRecorder
SkPaint -> PaintFlags
SkShader -> PaintShader
These are all typedef'd to Skia types in cc/paint headers. They are
forwarded to the Blink namespace via platform/graphics/paint headers.
This first step in this patch is to rename uses of these classes
everywhere and then further patches will replace their implementation.
This adds a cc:paint gn component that only depends on Skia that can
then be depended on by ui and Blink platform without depending on the
rest of cc. This allows ui and Blink platform to continue to
encapsulate its use of cc while still being able to use paint data
structures throughout the entire pipeline.
This patch will be followed up with another patch to change all of
the identifiers that refer to old names.
See: https://docs.google.com/document/d/135-2dYsilJCPucW7edvuh-eGOmmGvazX4QuF7vIboBY/edit?disco=AAAAA5r88Q0
BUG=671433
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
Review-Url: https://codereview.chromium.org/2640983002
Cr-Commit-Position: refs/heads/master@{#447861}
diff --git a/cc/trees/layer_tree_host_unittest_context.cc b/cc/trees/layer_tree_host_unittest_context.cc
index e73d79e2..a8b7086 100644
--- a/cc/trees/layer_tree_host_unittest_context.cc
+++ b/cc/trees/layer_tree_host_unittest_context.cc
@@ -15,6 +15,7 @@
#include "cc/layers/video_layer.h"
#include "cc/layers/video_layer_impl.h"
#include "cc/output/filter_operations.h"
+#include "cc/paint/paint_flags.h"
#include "cc/resources/single_release_callback.h"
#include "cc/resources/ui_resource_manager.h"
#include "cc/test/fake_content_layer_client.h"
@@ -609,7 +610,7 @@
root_->SetIsDrawable(true);
// Paint non-solid color.
- SkPaint paint;
+ PaintFlags paint;
paint.setColor(SkColorSetARGB(100, 80, 200, 200));
client_.add_draw_rect(gfx::Rect(5, 5), paint);
@@ -688,7 +689,7 @@
void SetupTree() override {
// Paint non-solid color.
- SkPaint paint;
+ PaintFlags paint;
paint.setColor(SkColorSetARGB(100, 80, 200, 200));
client_.add_draw_rect(gfx::Rect(5, 5), paint);
@@ -1602,7 +1603,7 @@
: public LayerTreeTest {
protected:
void SetupTree() override {
- SkPaint paint;
+ PaintFlags paint;
client_.set_fill_with_nonsolid_color(true);
client_.add_draw_rect(gfx::Rect(5, 5), paint);