Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
++
  • Loading branch information
jonahwilliams committed Oct 18, 2023
commit c46d3eb8e3ec2bc37a3f7276d730704c4c9fcff2
6 changes: 3 additions & 3 deletions impeller/renderer/backend/gles/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,16 @@ impeller_component("gles") {
"command_buffer_gles.h",
"context_gles.cc",
"context_gles.h",
"context_gles.h",
"description_gles.cc",
"description_gles.h",
"device_buffer_gles.cc",
"device_buffer_gles.h",
"formats_gles.cc",
"formats_gles.h",
"gles.h",
"gpu_tracer_gles.cc",
"gpu_tracer_gles.h",
"handle_gles.cc",
"handle_gles.h",
"pipeline_gles.cc",
Expand All @@ -75,9 +78,6 @@ impeller_component("gles") {
"surface_gles.h",
"texture_gles.cc",
"texture_gles.h",
"context_gles.h",
"gpu_tracer_gles.cc",
"gpu_tracer_gles.h",
]

if (!is_android && !is_fuchsia) {
Expand Down
4 changes: 1 addition & 3 deletions impeller/renderer/backend/gles/context_gles.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ class ContextGLES final : public Context,

bool RemoveReactorWorker(ReactorGLES::WorkerID id);

std::shared_ptr<GPUTracerGLES> GetGPUTracer() const {
return gpu_tracer_;
}
std::shared_ptr<GPUTracerGLES> GetGPUTracer() const { return gpu_tracer_; }

private:
ReactorGLES::Ref reactor_;
Expand Down
4 changes: 1 addition & 3 deletions impeller/renderer/backend/gles/gpu_tracer_gles.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ class GPUTracerGLES {

void MarkFrameEnd(const ProcTableGLES& gl);

bool HasStartedFrame() const {
return has_started_frame_;
}
bool HasStartedFrame() const { return has_started_frame_; }

private:
std::vector<uint32_t> queries_;
Expand Down
4 changes: 2 additions & 2 deletions impeller/renderer/backend/gles/render_pass_gles.cc
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,8 @@ bool RenderPassGLES::OnEncodeCommands(const Context& context) const {
auto tracer = ContextGLES::Cast(context).GetGPUTracer();
return reactor_->AddOperation([pass_data,
allocator = context.GetResourceAllocator(),
render_pass = std::move(shared_this), tracer](
const auto& reactor) {
render_pass = std::move(shared_this),
tracer](const auto& reactor) {
auto result = EncodeCommandsInReactor(*pass_data, allocator, reactor,
render_pass->commands_, tracer);
FML_CHECK(result) << "Must be able to encode GL commands without error.";
Expand Down