Skip to content

Commit

Permalink
Move Contents classes into separate translation units (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdero authored and dnfield committed Apr 27, 2022
1 parent 9058956 commit c81fbbd
Show file tree
Hide file tree
Showing 34 changed files with 1,315 additions and 1,118 deletions.
2 changes: 1 addition & 1 deletion impeller/aiks/aiks_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <memory>

#include "flutter/fml/macros.h"
#include "impeller/entity/content_context.h"
#include "impeller/entity/contents/content_context.h"
#include "impeller/renderer/context.h"

namespace impeller {
Expand Down
3 changes: 3 additions & 0 deletions impeller/aiks/canvas.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

#include "flutter/fml/logging.h"
#include "impeller/aiks/paint_pass_delegate.h"
#include "impeller/entity/contents/clip_contents.h"
#include "impeller/entity/contents/text_contents.h"
#include "impeller/entity/contents/texture_contents.h"
#include "impeller/geometry/path_builder.h"

namespace impeller {
Expand Down
1 change: 1 addition & 0 deletions impeller/aiks/canvas.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "impeller/geometry/path.h"
#include "impeller/geometry/point.h"
#include "impeller/geometry/vector.h"
#include "impeller/typographer/glyph_atlas.h"
#include "impeller/typographer/text_frame.h"

namespace impeller {
Expand Down
2 changes: 2 additions & 0 deletions impeller/aiks/paint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// found in the LICENSE file.

#include "impeller/aiks/paint.h"
#include "impeller/entity/contents/solid_color_contents.h"
#include "impeller/entity/contents/solid_stroke_contents.h"

namespace impeller {

Expand Down
2 changes: 1 addition & 1 deletion impeller/aiks/paint.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <memory>

#include "flutter/fml/macros.h"
#include "impeller/entity/contents.h"
#include "impeller/entity/contents/contents.h"
#include "impeller/geometry/color.h"

namespace impeller {
Expand Down
3 changes: 2 additions & 1 deletion impeller/aiks/paint_pass_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

#include "impeller/aiks/paint_pass_delegate.h"

#include "impeller/entity/contents.h"
#include "impeller/entity/contents/contents.h"
#include "impeller/entity/contents/texture_contents.h"

namespace impeller {

Expand Down
1 change: 1 addition & 0 deletions impeller/display_list/display_list_dispatcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "impeller/display_list/display_list_dispatcher.h"

#include "flutter/fml/trace_event.h"
#include "impeller/entity/contents/linear_gradient_contents.h"
#include "impeller/geometry/path_builder.h"
#include "impeller/typographer/backends/skia/text_frame_skia.h"
#include "third_party/skia/include/core/SkColor.h"
Expand Down
20 changes: 16 additions & 4 deletions impeller/entity/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,22 @@ impeller_shaders("entity_shaders") {

impeller_component("entity") {
sources = [
"content_context.cc",
"content_context.h",
"contents.cc",
"contents.h",
"contents/clip_contents.cc",
"contents/clip_contents.h",
"contents/content_context.cc",
"contents/content_context.h",
"contents/contents.cc",
"contents/contents.h",
"contents/linear_gradient_contents.cc",
"contents/linear_gradient_contents.h",
"contents/solid_color_contents.cc",
"contents/solid_color_contents.h",
"contents/solid_stroke_contents.cc",
"contents/solid_stroke_contents.h",
"contents/text_contents.cc",
"contents/text_contents.h",
"contents/texture_contents.cc",
"contents/texture_contents.h",
"entity.cc",
"entity.h",
"entity_pass.cc",
Expand Down
Loading

0 comments on commit c81fbbd

Please sign in to comment.