| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" | 38 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" |
| 39 #include "gpu/command_buffer/common/capabilities.h" | 39 #include "gpu/command_buffer/common/capabilities.h" |
| 40 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h" | 40 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h" |
| 41 #include "platform/RuntimeEnabledFeatures.h" | 41 #include "platform/RuntimeEnabledFeatures.h" |
| 42 #include "platform/graphics/AcceleratedStaticBitmapImage.h" | 42 #include "platform/graphics/AcceleratedStaticBitmapImage.h" |
| 43 #include "platform/graphics/GraphicsLayer.h" | 43 #include "platform/graphics/GraphicsLayer.h" |
| 44 #include "platform/graphics/ImageBuffer.h" | 44 #include "platform/graphics/ImageBuffer.h" |
| 45 #include "platform/graphics/WebGraphicsContext3DProviderWrapper.h" | 45 #include "platform/graphics/WebGraphicsContext3DProviderWrapper.h" |
| 46 #include "platform/graphics/gpu/Extensions3DUtil.h" | 46 #include "platform/graphics/gpu/Extensions3DUtil.h" |
| 47 #include "platform/instrumentation/tracing/TraceEvent.h" | 47 #include "platform/instrumentation/tracing/TraceEvent.h" |
| 48 #include "platform/wtf/CheckedNumeric.h" |
| 49 #include "platform/wtf/typed_arrays/ArrayBufferContents.h" |
| 48 #include "public/platform/Platform.h" | 50 #include "public/platform/Platform.h" |
| 49 #include "public/platform/WebCompositorSupport.h" | 51 #include "public/platform/WebCompositorSupport.h" |
| 50 #include "public/platform/WebExternalBitmap.h" | 52 #include "public/platform/WebExternalBitmap.h" |
| 51 #include "public/platform/WebExternalTextureLayer.h" | 53 #include "public/platform/WebExternalTextureLayer.h" |
| 52 #include "skia/ext/texture_handle.h" | 54 #include "skia/ext/texture_handle.h" |
| 53 #include "third_party/skia/include/core/SkSurface.h" | 55 #include "third_party/skia/include/core/SkSurface.h" |
| 54 #include "third_party/skia/include/gpu/GrContext.h" | 56 #include "third_party/skia/include/gpu/GrContext.h" |
| 55 #include "third_party/skia/include/gpu/gl/GrGLTypes.h" | 57 #include "third_party/skia/include/gpu/gl/GrGLTypes.h" |
| 56 #include "wtf/CheckedNumeric.h" | |
| 57 #include "wtf/typed_arrays/ArrayBufferContents.h" | |
| 58 | 58 |
| 59 namespace blink { | 59 namespace blink { |
| 60 | 60 |
| 61 namespace { | 61 namespace { |
| 62 | 62 |
| 63 const float s_resourceAdjustedRatio = 0.5; | 63 const float s_resourceAdjustedRatio = 0.5; |
| 64 | 64 |
| 65 static bool shouldFailDrawingBufferCreationForTesting = false; | 65 static bool shouldFailDrawingBufferCreationForTesting = false; |
| 66 | 66 |
| 67 } // namespace | 67 } // namespace |
| (...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1296 if (m_pixelUnpackBufferBindingDirty) | 1296 if (m_pixelUnpackBufferBindingDirty) |
| 1297 client->DrawingBufferClientRestorePixelUnpackBufferBinding(); | 1297 client->DrawingBufferClientRestorePixelUnpackBufferBinding(); |
| 1298 } | 1298 } |
| 1299 | 1299 |
| 1300 bool DrawingBuffer::shouldUseChromiumImage() { | 1300 bool DrawingBuffer::shouldUseChromiumImage() { |
| 1301 return RuntimeEnabledFeatures::webGLImageChromiumEnabled() && | 1301 return RuntimeEnabledFeatures::webGLImageChromiumEnabled() && |
| 1302 m_chromiumImageUsage == AllowChromiumImage; | 1302 m_chromiumImageUsage == AllowChromiumImage; |
| 1303 } | 1303 } |
| 1304 | 1304 |
| 1305 } // namespace blink | 1305 } // namespace blink |
| OLD | NEW |