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

Unified Diff: ui/ozone/platform/drm/gpu/drm_window.cc

Issue 1432443004: Remove SkDevice and SkBaseDevice outside skia/ext/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pass SkPixmap by pointer to MakeBitmapOpaque Created 5 years, 1 month 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 | « ui/gfx/nine_image_painter_unittest.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/gpu/drm_window.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_window.cc b/ui/ozone/platform/drm/gpu/drm_window.cc
index ba752f08ef4b3b40b95c3d2c12ca100c2c1580dd..59b238035ba9c32d49de77703be5a3dfdd722000 100644
--- a/ui/ozone/platform/drm/gpu/drm_window.cc
+++ b/ui/ozone/platform/drm/gpu/drm_window.cc
@@ -9,7 +9,7 @@
#include "base/time/time.h"
#include "base/trace_event/trace_event.h"
#include "third_party/skia/include/core/SkBitmap.h"
-#include "third_party/skia/include/core/SkDevice.h"
+#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkSurface.h"
#include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
#include "ui/ozone/platform/drm/common/drm_util.h"
@@ -41,8 +41,8 @@ void UpdateCursorImage(DrmBuffer* cursor, const SkBitmap& image) {
canvas->clear(SK_ColorTRANSPARENT);
SkRect clip;
- clip.set(0, 0, canvas->getDeviceSize().width(),
- canvas->getDeviceSize().height());
+ clip.set(0, 0, canvas->getBaseLayerSize().width(),
+ canvas->getBaseLayerSize().height());
canvas->clipRect(clip, SkRegion::kReplace_Op);
canvas->drawBitmapRect(image, damage, NULL);
}
« no previous file with comments | « ui/gfx/nine_image_painter_unittest.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698