Skip to content

Commit

Permalink
new package: carbonyl
Browse files Browse the repository at this point in the history
  • Loading branch information
licy183 committed Aug 4, 2023
1 parent df7c598 commit d0d1953
Show file tree
Hide file tree
Showing 8 changed files with 3,117 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tur-continuous/carbonyl/0001-override-build-target.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/src/browser/BUILD.gn
+++ b/src/browser/BUILD.gn
@@ -40,7 +40,7 @@
if (is_mac) {
target += "apple-darwin"
} else if (is_linux) {
- target += "unknown-linux-gnu"
+ target += "linux-android"
}

libs = ["carbonyl"]
9 changes: 9 additions & 0 deletions tur-continuous/carbonyl/0002-fix-cxx-include.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--- a/chromium/src/carbonyl/src/browser/renderer.cc
+++ b/chromium/src/carbonyl/src/browser/renderer.cc
@@ -1,5 +1,6 @@
#include "carbonyl/src/browser/renderer.h"

+#include <vector>
#include <memory>
#include <iostream>
#include <stdio.h>
22 changes: 22 additions & 0 deletions tur-continuous/carbonyl/0003-rename-gfx-namespace-to-gl.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--- a/chromium/src/components/viz/service/display_embedder/software_output_device_proxy.h
+++ b/chromium/src/components/viz/service/display_embedder/software_output_device_proxy.h
@@ -64,7 +64,7 @@
SoftwareOutputDeviceProxy& operator=(const SoftwareOutputDeviceProxy&) = delete;

// SoftwareOutputDevice implementation.
- void OnSwapBuffers(SoftwareOutputDevice::SwapBuffersCallback swap_ack_callback, gfx::FrameData data) override;
+ void OnSwapBuffers(SoftwareOutputDevice::SwapBuffersCallback swap_ack_callback, gl::FrameData data) override;

// SoftwareOutputDeviceBase implementation.
void ResizeDelegated() override;
--- a/chromium/src/components/viz/service/display_embedder/software_output_device_proxy.cc
+++ b/chromium/src/components/viz/service/display_embedder/software_output_device_proxy.cc
@@ -73,7 +73,7 @@

void SoftwareOutputDeviceProxy::OnSwapBuffers(
SoftwareOutputDevice::SwapBuffersCallback swap_ack_callback,
- gfx::FrameData data) {
+ gl::FrameData data) {
DCHECK(swap_ack_callback_.is_null());

// We aren't waiting on DrawAck() and can immediately run the callback.
11 changes: 11 additions & 0 deletions tur-continuous/carbonyl/0004-render_frame_impl.cc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/chromium/src/content/renderer/render_frame_impl.cc
+++ b/chromium/src/content/renderer/render_frame_impl.cc
@@ -2223,7 +2223,7 @@
auto* view = static_cast<blink::WebViewImpl*>(GetWebFrame()->View());
std::vector<carbonyl::mojom::TextDataPtr> data;

- view->MainFrameImpl()->GetFrame()->View()->GetPaintRecord().Playback(
+ view->MainFrameImpl()->GetFrame()->View()->GetPaintRecord()->Playback(
renderer->BeginPaint(width, height)
);

Loading

0 comments on commit d0d1953

Please sign in to comment.