Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/Canvas2DImageBufferSurface.h

Issue 2398453002: Rewrap comments to 80 columns in Source/platform/graphics/. (Closed)
Patch Set: Review feedback Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 19 matching lines...) Expand all
30 30
31 #ifndef Canvas2DImageBufferSurface_h 31 #ifndef Canvas2DImageBufferSurface_h
32 #define Canvas2DImageBufferSurface_h 32 #define Canvas2DImageBufferSurface_h
33 33
34 #include "platform/graphics/Canvas2DLayerBridge.h" 34 #include "platform/graphics/Canvas2DLayerBridge.h"
35 #include "platform/graphics/ImageBufferSurface.h" 35 #include "platform/graphics/ImageBufferSurface.h"
36 #include "third_party/skia/include/core/SkRefCnt.h" 36 #include "third_party/skia/include/core/SkRefCnt.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 // This shim necessary because ImageBufferSurfaces are not allowed to be RefCoun ted 40 // This shim is necessary because ImageBufferSurfaces are not allowed to be
41 // RefCounted.
41 class Canvas2DImageBufferSurface final : public ImageBufferSurface { 42 class Canvas2DImageBufferSurface final : public ImageBufferSurface {
42 public: 43 public:
43 Canvas2DImageBufferSurface( 44 Canvas2DImageBufferSurface(
44 std::unique_ptr<WebGraphicsContext3DProvider> contextProvider, 45 std::unique_ptr<WebGraphicsContext3DProvider> contextProvider,
45 const IntSize& size, 46 const IntSize& size,
46 int msaaSampleCount, 47 int msaaSampleCount,
47 OpacityMode opacityMode, 48 OpacityMode opacityMode,
48 Canvas2DLayerBridge::AccelerationMode accelerationMode, 49 Canvas2DLayerBridge::AccelerationMode accelerationMode,
49 sk_sp<SkColorSpace> colorSpace) 50 sk_sp<SkColorSpace> colorSpace)
50 : ImageBufferSurface(size, opacityMode, colorSpace), 51 : ImageBufferSurface(size, opacityMode, colorSpace),
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 if (isValid()) 113 if (isValid())
113 m_layerBridge->flush(); 114 m_layerBridge->flush();
114 } 115 }
115 116
116 RefPtr<Canvas2DLayerBridge> m_layerBridge; 117 RefPtr<Canvas2DLayerBridge> m_layerBridge;
117 }; 118 };
118 119
119 } // namespace blink 120 } // namespace blink
120 121
121 #endif 122 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698