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

Side by Side Diff: services/native_viewport/onscreen_context_provider.h

Issue 1116883002: Automatically redraw the display on resume. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 SERVICES_NATIVE_VIEWPORT_ONSCREEN_CONTEXT_PROVIDER_H_ 5 #ifndef SERVICES_NATIVE_VIEWPORT_ONSCREEN_CONTEXT_PROVIDER_H_
6 #define SERVICES_NATIVE_VIEWPORT_ONSCREEN_CONTEXT_PROVIDER_H_ 6 #define SERVICES_NATIVE_VIEWPORT_ONSCREEN_CONTEXT_PROVIDER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "mojo/services/gpu/public/interfaces/context_provider.mojom.h" 9 #include "mojo/services/gpu/public/interfaces/context_provider.mojom.h"
10 #include "mojo/services/gpu/public/interfaces/viewport_parameter_listener.mojom. h" 10 #include "mojo/services/gpu/public/interfaces/viewport_parameter_listener.mojom. h"
(...skipping 11 matching lines...) Expand all
22 ~OnscreenContextProvider() override; 22 ~OnscreenContextProvider() override;
23 23
24 void Bind(mojo::InterfaceRequest<mojo::ContextProvider> request); 24 void Bind(mojo::InterfaceRequest<mojo::ContextProvider> request);
25 25
26 void SetAcceleratedWidget(gfx::AcceleratedWidget widget); 26 void SetAcceleratedWidget(gfx::AcceleratedWidget widget);
27 27
28 private: 28 private:
29 // mojo::ContextProvider implementation: 29 // mojo::ContextProvider implementation:
30 void Create(mojo::ViewportParameterListenerPtr viewport_parameter_listener, 30 void Create(mojo::ViewportParameterListenerPtr viewport_parameter_listener,
31 const CreateCallback& callback) override; 31 const CreateCallback& callback) override;
32 void NotifyOnViewportCreated(
33 const NotifyOnViewportCreatedCallback& callback) override;
32 34
33 void CreateAndReturnCommandBuffer(); 35 void CreateAndReturnCommandBuffer();
34 36
35 scoped_refptr<gles2::GpuState> state_; 37 scoped_refptr<gles2::GpuState> state_;
36 gfx::AcceleratedWidget widget_; 38 gfx::AcceleratedWidget widget_;
37 mojo::ViewportParameterListenerPtr pending_listener_; 39 mojo::ViewportParameterListenerPtr pending_listener_;
38 CreateCallback pending_create_callback_; 40 CreateCallback pending_create_callback_;
41 NotifyOnViewportCreatedCallback pending_viewport_callback_;
39 mojo::Binding<mojo::ContextProvider> binding_; 42 mojo::Binding<mojo::ContextProvider> binding_;
40 43
41 DISALLOW_COPY_AND_ASSIGN(OnscreenContextProvider); 44 DISALLOW_COPY_AND_ASSIGN(OnscreenContextProvider);
42 }; 45 };
43 46
44 } // namespace mojo 47 } // namespace mojo
45 48
46 #endif // SERVICES_NATIVE_VIEWPORT_ONSCREEN_CONTEXT_PROVIDER_H_ 49 #endif // SERVICES_NATIVE_VIEWPORT_ONSCREEN_CONTEXT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698