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

Unified Diff: content/renderer/gpu/gpu_benchmarking_extension.cc

Issue 2865363002: Compile Skia image encoders (Closed)
Patch Set: Fix ios and win Created 3 years, 7 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
« no previous file with comments | « no previous file | skia/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/gpu_benchmarking_extension.cc
diff --git a/content/renderer/gpu/gpu_benchmarking_extension.cc b/content/renderer/gpu/gpu_benchmarking_extension.cc
index d5836a8179efe7a1e6b7ffd35b74f5d5ce454ad7..0088be9e7823c229c7aebe03bad91d1d994dad1a 100644
--- a/content/renderer/gpu/gpu_benchmarking_extension.cc
+++ b/content/renderer/gpu/gpu_benchmarking_extension.cc
@@ -64,8 +64,6 @@
#if defined(OS_WIN) && !defined(NDEBUG)
#include <XpsObjectModel.h>
#include "base/win/scoped_comptr.h"
-#include "skia/ext/skia_encode_image.h"
-#include "ui/gfx/codec/skia_image_encoder_adapter.h"
#endif
using blink::WebCanvas;
@@ -525,9 +523,6 @@ static void PrintDocumentTofile(v8::Isolate* isolate,
// `--enable-gpu-benchmarking` for this to work.
#if defined(OS_WIN) && !defined(NDEBUG)
static sk_sp<SkDocument> MakeXPSDocument(SkWStream* s) {
- // Hand Skia an image encoder, needed for XPS backend.
- skia::SetImageEncoder(&gfx::EncodeSkiaImage);
-
// I am not sure why this hasn't been initialized yet.
(void)CoInitializeEx(nullptr,
COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE);
« no previous file with comments | « no previous file | skia/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698