| OLD | NEW |
| 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 EXAMPLES_GANESH_APP_GANESH_VIEW_H_ | 5 #ifndef EXAMPLES_GANESH_APP_GANESH_VIEW_H_ |
| 6 #define EXAMPLES_GANESH_APP_GANESH_VIEW_H_ | 6 #define EXAMPLES_GANESH_APP_GANESH_VIEW_H_ |
| 7 | 7 |
| 8 #include "examples/ganesh_app/texture_uploader.h" | 8 #include "examples/ganesh_app/texture_uploader.h" |
| 9 #include "mojo/gpu/gl_context.h" | 9 #include "mojo/gpu/gl_context.h" |
| 10 #include "mojo/services/surfaces/interfaces/surface_id.mojom.h" | 10 #include "mojo/services/surfaces/interfaces/surface_id.mojom.h" |
| 11 #include "mojo/services/view_manager/public/cpp/view_observer.h" | 11 #include "mojo/services/view_manager/cpp/view_observer.h" |
| 12 #include "mojo/skia/ganesh_context.h" | 12 #include "mojo/skia/ganesh_context.h" |
| 13 | 13 |
| 14 namespace mojo { | 14 namespace mojo { |
| 15 class Shell; | 15 class Shell; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace examples { | 18 namespace examples { |
| 19 | 19 |
| 20 class GaneshView : public TextureUploader::Client, public mojo::ViewObserver { | 20 class GaneshView : public TextureUploader::Client, public mojo::ViewObserver { |
| 21 public: | 21 public: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 39 base::WeakPtr<mojo::GLContext> gl_context_; | 39 base::WeakPtr<mojo::GLContext> gl_context_; |
| 40 scoped_ptr<mojo::GaneshContext> gr_context_; | 40 scoped_ptr<mojo::GaneshContext> gr_context_; |
| 41 TextureUploader texture_uploader_; | 41 TextureUploader texture_uploader_; |
| 42 | 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(GaneshView); | 43 DISALLOW_COPY_AND_ASSIGN(GaneshView); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace examples | 46 } // namespace examples |
| 47 | 47 |
| 48 #endif // EXAMPLES_GANESH_APP_GANESH_VIEW_H_ | 48 #endif // EXAMPLES_GANESH_APP_GANESH_VIEW_H_ |
| OLD | NEW |