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 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "ui/gfx/gl/gpu_preference.h" | 29 #include "ui/gfx/gl/gpu_preference.h" |
30 #include "ui/gfx/native_widget_types.h" | 30 #include "ui/gfx/native_widget_types.h" |
31 #include "ui/gfx/size.h" | 31 #include "ui/gfx/size.h" |
32 #include "ui/gfx/surface/transport_dib.h" | 32 #include "ui/gfx/surface/transport_dib.h" |
33 | 33 |
34 #if defined(OS_MACOSX) | 34 #if defined(OS_MACOSX) |
35 #include "ui/gfx/surface/accelerated_surface_mac.h" | 35 #include "ui/gfx/surface/accelerated_surface_mac.h" |
36 #endif | 36 #endif |
37 | 37 |
38 class GpuChannel; | 38 class GpuChannel; |
39 class GpuMemoryAllocation; | 39 struct GpuMemoryAllocation; |
40 class GpuWatchdog; | 40 class GpuWatchdog; |
41 | 41 |
42 // This Base class is used to expose methods of GpuCommandBufferStub used for | 42 // This Base class is used to expose methods of GpuCommandBufferStub used for |
43 // testability. | 43 // testability. |
44 class CONTENT_EXPORT GpuCommandBufferStubBase { | 44 class CONTENT_EXPORT GpuCommandBufferStubBase { |
45 public: | 45 public: |
46 struct CONTENT_EXPORT SurfaceState { | 46 struct CONTENT_EXPORT SurfaceState { |
47 int32 surface_id; | 47 int32 surface_id; |
48 bool visible; | 48 bool visible; |
49 base::TimeTicks last_used_time; | 49 base::TimeTicks last_used_time; |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; | 242 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; |
243 | 243 |
244 ObserverList<DestructionObserver> destruction_observers_; | 244 ObserverList<DestructionObserver> destruction_observers_; |
245 | 245 |
246 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 246 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
247 }; | 247 }; |
248 | 248 |
249 #endif // defined(ENABLE_GPU) | 249 #endif // defined(ENABLE_GPU) |
250 | 250 |
251 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 251 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
OLD | NEW |