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

Unified Diff: ui/ozone/platform/caca/caca_surface_factory.cc

Issue 249413003: ozone: dri: Composite to intermediate surface & copy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: split drisurfaceadapter definitions Created 6 years, 8 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 | « ui/gfx/ozone/surface_ozone_canvas.h ('k') | ui/ozone/platform/dri/dri_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/caca/caca_surface_factory.cc
diff --git a/ui/ozone/platform/caca/caca_surface_factory.cc b/ui/ozone/platform/caca/caca_surface_factory.cc
index 1786831cb9cea87ab6209eaee7165afab3834bc0..bb8c3d93f3bd2eed8199d61545f1161a5492b559 100644
--- a/ui/ozone/platform/caca/caca_surface_factory.cc
+++ b/ui/ozone/platform/caca/caca_surface_factory.cc
@@ -27,8 +27,8 @@ class CacaSurface : public gfx::SurfaceOzoneCanvas {
// gfx::SurfaceOzoneCanvas overrides:
virtual skia::RefPtr<SkCanvas> GetCanvas() OVERRIDE;
- virtual bool ResizeCanvas(const gfx::Size& viewport_size) OVERRIDE;
- virtual bool PresentCanvas() OVERRIDE;
+ virtual void ResizeCanvas(const gfx::Size& viewport_size) OVERRIDE;
+ virtual void PresentCanvas(const gfx::Rect& damage) OVERRIDE;
virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() OVERRIDE;
private:
@@ -77,12 +77,11 @@ skia::RefPtr<SkCanvas> CacaSurface::GetCanvas() {
return skia::SharePtr<SkCanvas>(surface_->getCanvas());
}
-bool CacaSurface::ResizeCanvas(const gfx::Size& viewport_size) {
+void CacaSurface::ResizeCanvas(const gfx::Size& viewport_size) {
NOTIMPLEMENTED();
- return false;
}
-bool CacaSurface::PresentCanvas() {
+void CacaSurface::PresentCanvas(const gfx::Rect& damage) {
SkImageInfo info;
size_t row_bytes;
const void* pixels = surface_->peekPixels(&info, &row_bytes);
@@ -94,8 +93,6 @@ bool CacaSurface::PresentCanvas() {
dither_,
static_cast<const uint8_t*>(pixels));
caca_refresh_display(connection_->display());
-
- return true;
}
scoped_ptr<gfx::VSyncProvider> CacaSurface::CreateVSyncProvider() {
« no previous file with comments | « ui/gfx/ozone/surface_ozone_canvas.h ('k') | ui/ozone/platform/dri/dri_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698