| 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_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "ui/surface/accelerated_surface_mac.h" | 33 #include "ui/surface/accelerated_surface_mac.h" |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 class GpuChannel; | 36 class GpuChannel; |
| 37 struct GpuMemoryAllocation; | 37 struct GpuMemoryAllocation; |
| 38 class GpuVideoDecodeAccelerator; | 38 class GpuVideoDecodeAccelerator; |
| 39 class GpuWatchdog; | 39 class GpuWatchdog; |
| 40 | 40 |
| 41 namespace gpu { | 41 namespace gpu { |
| 42 namespace gles2 { | 42 namespace gles2 { |
| 43 class ImageManager; |
| 43 class MailboxManager; | 44 class MailboxManager; |
| 44 } | 45 } |
| 45 } | 46 } |
| 46 | 47 |
| 47 // This Base class is used to expose methods of GpuCommandBufferStub used for | 48 // This Base class is used to expose methods of GpuCommandBufferStub used for |
| 48 // testability. | 49 // testability. |
| 49 class CONTENT_EXPORT GpuCommandBufferStubBase { | 50 class CONTENT_EXPORT GpuCommandBufferStubBase { |
| 50 public: | 51 public: |
| 51 struct CONTENT_EXPORT SurfaceState { | 52 struct CONTENT_EXPORT SurfaceState { |
| 52 int32 surface_id; | 53 int32 surface_id; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 91 |
| 91 protected: | 92 protected: |
| 92 virtual ~DestructionObserver() {} | 93 virtual ~DestructionObserver() {} |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 GpuCommandBufferStub( | 96 GpuCommandBufferStub( |
| 96 GpuChannel* channel, | 97 GpuChannel* channel, |
| 97 GpuCommandBufferStub* share_group, | 98 GpuCommandBufferStub* share_group, |
| 98 const gfx::GLSurfaceHandle& handle, | 99 const gfx::GLSurfaceHandle& handle, |
| 99 gpu::gles2::MailboxManager* mailbox_manager, | 100 gpu::gles2::MailboxManager* mailbox_manager, |
| 101 gpu::gles2::ImageManager* image_manager, |
| 100 const gfx::Size& size, | 102 const gfx::Size& size, |
| 101 const gpu::gles2::DisallowedFeatures& disallowed_features, | 103 const gpu::gles2::DisallowedFeatures& disallowed_features, |
| 102 const std::string& allowed_extensions, | 104 const std::string& allowed_extensions, |
| 103 const std::vector<int32>& attribs, | 105 const std::vector<int32>& attribs, |
| 104 gfx::GpuPreference gpu_preference, | 106 gfx::GpuPreference gpu_preference, |
| 105 int32 route_id, | 107 int32 route_id, |
| 106 int32 surface_id, | 108 int32 surface_id, |
| 107 GpuWatchdog* watchdog, | 109 GpuWatchdog* watchdog, |
| 108 bool software, | 110 bool software, |
| 109 const GURL& active_url); | 111 const GURL& active_url); |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 292 |
| 291 scoped_refptr<gpu::RefCountedCounter> preempt_by_counter_; | 293 scoped_refptr<gpu::RefCountedCounter> preempt_by_counter_; |
| 292 | 294 |
| 293 GURL active_url_; | 295 GURL active_url_; |
| 294 size_t active_url_hash_; | 296 size_t active_url_hash_; |
| 295 | 297 |
| 296 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 298 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 297 }; | 299 }; |
| 298 | 300 |
| 299 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 301 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |