OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CC_RESOURCES_RESOURCE_PROVIDER_H_ | 5 #ifndef CC_RESOURCES_RESOURCE_PROVIDER_H_ |
6 #define CC_RESOURCES_RESOURCE_PROVIDER_H_ | 6 #define CC_RESOURCES_RESOURCE_PROVIDER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "cc/resources/single_release_callback_impl.h" | 35 #include "cc/resources/single_release_callback_impl.h" |
36 #include "cc/resources/texture_mailbox.h" | 36 #include "cc/resources/texture_mailbox.h" |
37 #include "cc/resources/transferable_resource.h" | 37 #include "cc/resources/transferable_resource.h" |
38 #include "third_party/khronos/GLES2/gl2.h" | 38 #include "third_party/khronos/GLES2/gl2.h" |
39 #include "third_party/khronos/GLES2/gl2ext.h" | 39 #include "third_party/khronos/GLES2/gl2ext.h" |
40 #include "third_party/skia/include/core/SkBitmap.h" | 40 #include "third_party/skia/include/core/SkBitmap.h" |
41 #include "ui/gfx/color_space.h" | 41 #include "ui/gfx/color_space.h" |
42 #include "ui/gfx/geometry/size.h" | 42 #include "ui/gfx/geometry/size.h" |
43 #include "ui/gfx/gpu_memory_buffer.h" | 43 #include "ui/gfx/gpu_memory_buffer.h" |
44 | 44 |
45 class GrContext; | |
46 class GrSurface; | |
47 | |
48 namespace gpu { | 45 namespace gpu { |
49 class GpuMemoryBufferManager; | 46 class GpuMemoryBufferManager; |
50 namespace gles { | 47 namespace gles { |
51 class GLES2Interface; | 48 class GLES2Interface; |
52 } | 49 } |
53 } | 50 } |
54 | 51 |
55 namespace gfx { | |
56 class Rect; | |
57 class Vector2d; | |
58 } | |
59 | |
60 namespace cc { | 52 namespace cc { |
61 class BlockingTaskRunner; | 53 class BlockingTaskRunner; |
62 class IdAllocator; | 54 class IdAllocator; |
63 class SharedBitmap; | 55 class SharedBitmap; |
64 class SharedBitmapManager; | 56 class SharedBitmapManager; |
65 | 57 |
66 // This class is not thread-safe and can only be called from the thread it was | 58 // This class is not thread-safe and can only be called from the thread it was |
67 // created on (in practice, the impl thread). | 59 // created on (in practice, the impl thread). |
68 class CC_EXPORT ResourceProvider | 60 class CC_EXPORT ResourceProvider |
69 : public base::trace_event::MemoryDumpProvider { | 61 : public base::trace_event::MemoryDumpProvider { |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 // A process-unique ID used for disambiguating memory dumps from different | 710 // A process-unique ID used for disambiguating memory dumps from different |
719 // resource providers. | 711 // resource providers. |
720 int tracing_id_; | 712 int tracing_id_; |
721 | 713 |
722 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); | 714 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); |
723 }; | 715 }; |
724 | 716 |
725 } // namespace cc | 717 } // namespace cc |
726 | 718 |
727 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ | 719 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ |
OLD | NEW |