| Index: gpu/ipc/client/gpu_memory_buffer_impl_io_surface.h
|
| diff --git a/gpu/ipc/client/gpu_memory_buffer_impl_io_surface.h b/gpu/ipc/client/gpu_memory_buffer_impl_io_surface.h
|
| index abd093e330b9f0bc1692e99ebf889c7aa0ee7c25..810cf65c1f3f18bc30a2955094a753c3a6b2d12e 100644
|
| --- a/gpu/ipc/client/gpu_memory_buffer_impl_io_surface.h
|
| +++ b/gpu/ipc/client/gpu_memory_buffer_impl_io_surface.h
|
| @@ -15,6 +15,7 @@
|
| #include "base/macros.h"
|
| #include "gpu/gpu_export.h"
|
| #include "gpu/ipc/client/gpu_memory_buffer_impl.h"
|
| +#include "ui/gfx/color_space.h"
|
|
|
| namespace gpu {
|
|
|
| @@ -56,6 +57,9 @@ class GPU_EXPORT GpuMemoryBufferImplIOSurface : public GpuMemoryBufferImpl {
|
|
|
| base::ScopedCFTypeRef<IOSurfaceRef> io_surface_;
|
| uint32_t lock_flags_;
|
| + // Cache the color space, because re-assigning the same value can be
|
| + // expensive.
|
| + gfx::ColorSpace color_space_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplIOSurface);
|
| };
|
|
|