Chromium Code Reviews| 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 #include "base/macros.h" | 5 #include "base/macros.h" |
| 6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
| 7 #include "mojo/public/cpp/bindings/interface_impl.h" | 7 #include "mojo/public/cpp/bindings/interface_impl.h" |
| 8 #include "mojo/public/cpp/bindings/interface_request.h" | 8 #include "mojo/public/cpp/bindings/interface_request.h" |
| 9 #include "mojo/services/public/interfaces/geometry/geometry.mojom.h" | 9 #include "mojo/services/public/interfaces/geometry/geometry.mojom.h" |
| 10 #include "mojo/services/public/interfaces/gpu/command_buffer.mojom.h" | 10 #include "mojo/services/public/interfaces/gpu/command_buffer.mojom.h" |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 31 | 31 |
| 32 void CreateOnscreenGLES2Context( | 32 void CreateOnscreenGLES2Context( |
| 33 uint64_t native_viewport_id, | 33 uint64_t native_viewport_id, |
| 34 SizePtr size, | 34 SizePtr size, |
| 35 InterfaceRequest<CommandBuffer> command_buffer_request) override; | 35 InterfaceRequest<CommandBuffer> command_buffer_request) override; |
| 36 | 36 |
| 37 void CreateOffscreenGLES2Context( | 37 void CreateOffscreenGLES2Context( |
| 38 InterfaceRequest<CommandBuffer> command_buffer_request) override; | 38 InterfaceRequest<CommandBuffer> command_buffer_request) override; |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 // We need to share these across all NativeViewport instances so that contexts | 41 // We need to share these across all NativeViewport instances so that contexts |
|
jamesr
2014/11/18 05:19:45
s/NativeViewport/CommandBuffer/
| |
| 42 // they create can share resources with each other via mailboxes. | 42 // they create can share resources with each other via mailboxes. |
| 43 scoped_refptr<gfx::GLShareGroup> share_group_; | 43 scoped_refptr<gfx::GLShareGroup> share_group_; |
| 44 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; | 44 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; |
| 45 | 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(GpuImpl); | 46 DISALLOW_COPY_AND_ASSIGN(GpuImpl); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace mojo | 49 } // namespace mojo |
| OLD | NEW |