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

Unified Diff: content/browser/compositor/software_output_device_mus.cc

Issue 2162693002: Move bitmap uploader to ui service client lib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 | « content/browser/compositor/DEPS ('k') | services/ui/demo/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/software_output_device_mus.cc
diff --git a/content/browser/compositor/software_output_device_mus.cc b/content/browser/compositor/software_output_device_mus.cc
index 7ff131c3c93e9f5370dea464fe7a2a975e93831a..c98153ac9e126d19884492aaa4a4ce67442ba653 100644
--- a/content/browser/compositor/software_output_device_mus.cc
+++ b/content/browser/compositor/software_output_device_mus.cc
@@ -7,7 +7,7 @@
#include <stddef.h>
#include <utility>
-#include "components/bitmap_uploader/bitmap_uploader.h"
+#include "services/ui/public/cpp/bitmap_uploader.h"
#include "third_party/skia/include/core/SkImageInfo.h"
#include "ui/base/view_prop.h"
#include "ui/compositor/compositor.h"
@@ -37,9 +37,9 @@ void SoftwareOutputDeviceMus::EndPaint() {
return;
gfx::AcceleratedWidget widget = compositor_->widget();
- bitmap_uploader::BitmapUploader* uploader =
- reinterpret_cast<bitmap_uploader::BitmapUploader*>(ui::ViewProp::GetValue(
- widget, bitmap_uploader::kBitmapUploaderForAcceleratedWidget));
+ ui::BitmapUploader* uploader =
+ reinterpret_cast<ui::BitmapUploader*>(ui::ViewProp::GetValue(
+ widget, ui::kBitmapUploaderForAcceleratedWidget));
DCHECK(uploader);
SkPixmap pixmap;
@@ -61,7 +61,7 @@ void SoftwareOutputDeviceMus::EndPaint() {
pixels, pixels + pixmap.rowBytes() * viewport_pixel_size_.height()));
uploader->SetBitmap(viewport_pixel_size_.width(),
viewport_pixel_size_.height(), std::move(data),
- bitmap_uploader::BitmapUploader::BGRA);
+ ui::BitmapUploader::BGRA);
}
} // namespace content
« no previous file with comments | « content/browser/compositor/DEPS ('k') | services/ui/demo/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698