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

Side by Side Diff: ui/gfx/ozone/surface_ozone_canvas.h

Issue 249413003: ozone: dri: Composite to intermediate surface & copy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor cleanup 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_OZONE_SURFACE_OZONE_CANVAS_H_ 5 #ifndef UI_GFX_OZONE_SURFACE_OZONE_CANVAS_H_
6 #define UI_GFX_OZONE_SURFACE_OZONE_CANVAS_H_ 6 #define UI_GFX_OZONE_SURFACE_OZONE_CANVAS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "skia/ext/refptr.h" 10 #include "skia/ext/refptr.h"
(...skipping 18 matching lines...) Expand all
29 virtual skia::RefPtr<SkCanvas> GetCanvas() = 0; 29 virtual skia::RefPtr<SkCanvas> GetCanvas() = 0;
30 30
31 // Attempts to resize the canvas to match the viewport size. Returns true if 31 // Attempts to resize the canvas to match the viewport size. Returns true if
32 // resizing was successful, otherwise false (platforms may require a fixed 32 // resizing was successful, otherwise false (platforms may require a fixed
33 // size canvas). After resizing, the compositor must call GetCanvas() to get 33 // size canvas). After resizing, the compositor must call GetCanvas() to get
34 // the next canvas. 34 // the next canvas.
35 virtual bool ResizeCanvas(const gfx::Size& viewport_size) = 0; 35 virtual bool ResizeCanvas(const gfx::Size& viewport_size) = 0;
36 36
37 // Present the current canvas. After presenting, the compositor must call 37 // Present the current canvas. After presenting, the compositor must call
38 // GetCanvas() to get the next canvas. 38 // GetCanvas() to get the next canvas.
39 virtual bool PresentCanvas() = 0; 39 virtual bool PresentCanvas(const gfx::Rect& damage) = 0;
40 40
41 // Returns a gfx::VsyncProvider for this surface. Note that this may be 41 // Returns a gfx::VsyncProvider for this surface. Note that this may be
42 // called after we have entered the sandbox so if there are operations (e.g. 42 // called after we have entered the sandbox so if there are operations (e.g.
43 // opening a file descriptor providing vsync events) that must be done 43 // opening a file descriptor providing vsync events) that must be done
44 // outside of the sandbox, they must have been completed in 44 // outside of the sandbox, they must have been completed in
45 // InitializeHardware. Returns an empty scoped_ptr on error. 45 // InitializeHardware. Returns an empty scoped_ptr on error.
46 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() = 0; 46 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() = 0;
47 }; 47 };
48 48
49 } // namespace gfx 49 } // namespace gfx
50 50
51 #endif // UI_GFX_OZONE_SURFACE_OZONE_CANVAS_H_ 51 #endif // UI_GFX_OZONE_SURFACE_OZONE_CANVAS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698