OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 | 425 |
426 // GpuChannelHostFactory implementation: | 426 // GpuChannelHostFactory implementation: |
427 bool IsMainThread() override; | 427 bool IsMainThread() override; |
428 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; | 428 scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override; |
429 scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) override; | 429 scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) override; |
430 CreateCommandBufferResult CreateViewCommandBuffer( | 430 CreateCommandBufferResult CreateViewCommandBuffer( |
431 int32 surface_id, | 431 int32 surface_id, |
432 const GPUCreateCommandBufferConfig& init_params, | 432 const GPUCreateCommandBufferConfig& init_params, |
433 int32 route_id) override; | 433 int32 route_id) override; |
434 | 434 |
| 435 bool CreateStreamTexture(int32 image_id, |
| 436 int32 route_id, |
| 437 int32 stream_id) override; |
| 438 |
435 void Init(); | 439 void Init(); |
436 | 440 |
437 void OnCreateNewFrame(FrameMsg_NewFrame_Params params); | 441 void OnCreateNewFrame(FrameMsg_NewFrame_Params params); |
438 void OnCreateNewFrameProxy(int routing_id, | 442 void OnCreateNewFrameProxy(int routing_id, |
439 int parent_routing_id, | 443 int parent_routing_id, |
440 int render_view_routing_id, | 444 int render_view_routing_id, |
441 const FrameReplicationState& replicated_state); | 445 const FrameReplicationState& replicated_state); |
442 void OnSetZoomLevelForCurrentURL(const std::string& scheme, | 446 void OnSetZoomLevelForCurrentURL(const std::string& scheme, |
443 const std::string& host, | 447 const std::string& host, |
444 double zoom_level); | 448 double zoom_level); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 646 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
643 }; | 647 }; |
644 | 648 |
645 #if defined(COMPILER_MSVC) | 649 #if defined(COMPILER_MSVC) |
646 #pragma warning(pop) | 650 #pragma warning(pop) |
647 #endif | 651 #endif |
648 | 652 |
649 } // namespace content | 653 } // namespace content |
650 | 654 |
651 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 655 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |