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

Unified Diff: mojo/services/native_viewport/viewport_surface.h

Issue 534843002: Convert view manager to surfaces with uploading shim in client lib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove overzealous shutdown check in cc/surfaces, add NON_EXPORTED_BASE for windows build, saturate… Created 6 years, 3 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
Index: mojo/services/native_viewport/viewport_surface.h
diff --git a/mojo/services/native_viewport/viewport_surface.h b/mojo/services/native_viewport/viewport_surface.h
index f582907d7fe4633842fde2b99364554634e72bcc..2ca81059fdee759d22d28d60da0655f6104929f1 100644
--- a/mojo/services/native_viewport/viewport_surface.h
+++ b/mojo/services/native_viewport/viewport_surface.h
@@ -12,7 +12,7 @@
#include "mojo/services/public/interfaces/surfaces/surfaces.mojom.h"
#include "mojo/services/public/interfaces/surfaces/surfaces_service.mojom.h"
#include "ui/gfx/native_widget_types.h"
-#include "ui/gfx/rect.h"
+#include "ui/gfx/size.h"
namespace cc {
class SurfaceIdAllocator;
@@ -25,12 +25,12 @@ class ViewportSurface : public SurfaceClient {
public:
ViewportSurface(SurfacesService* surfaces_service,
Gpu* gpu_service,
- const gfx::Rect& bounds,
+ const gfx::Size& size,
cc::SurfaceId child_id);
virtual ~ViewportSurface();
void SetWidgetId(uint64_t widget_id);
- void SetBounds(const gfx::Rect& bounds);
+ void SetSize(const gfx::Size& size);
void SetChildId(cc::SurfaceId child_id);
private:
@@ -44,7 +44,7 @@ class ViewportSurface : public SurfaceClient {
SurfacePtr surface_;
Gpu* gpu_service_;
uint64_t widget_id_;
- gfx::Rect bounds_;
+ gfx::Size size_;
scoped_ptr<cc::SurfaceIdAllocator> id_allocator_;
cc::SurfaceId id_;
cc::SurfaceId child_id_;
« no previous file with comments | « mojo/services/native_viewport/native_viewport_impl.cc ('k') | mojo/services/native_viewport/viewport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698