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

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

Issue 2270533002: cc: Remove the software compositing bool from PrepareTextureMailbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@softwarerendering
Patch Set: remove-prepare-mailbox-param: bad-merge Created 4 years, 4 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 EnableAcceleration, 84 EnableAcceleration,
85 ForceAccelerationForTesting, 85 ForceAccelerationForTesting,
86 }; 86 };
87 87
88 Canvas2DLayerBridge(std::unique_ptr<WebGraphicsContext3DProvider>, const Int Size&, int msaaSampleCount, OpacityMode, AccelerationMode); 88 Canvas2DLayerBridge(std::unique_ptr<WebGraphicsContext3DProvider>, const Int Size&, int msaaSampleCount, OpacityMode, AccelerationMode);
89 ~Canvas2DLayerBridge() override; 89 ~Canvas2DLayerBridge() override;
90 90
91 // cc::TextureLayerClient implementation. 91 // cc::TextureLayerClient implementation.
92 bool PrepareTextureMailbox( 92 bool PrepareTextureMailbox(
93 cc::TextureMailbox* outMailbox, 93 cc::TextureMailbox* outMailbox,
94 std::unique_ptr<cc::SingleReleaseCallback>* outReleaseCallback, 94 std::unique_ptr<cc::SingleReleaseCallback>* outReleaseCallback) override ;
95 bool useSharedMemory) override;
96 95
97 // Callback for mailboxes given to the compositor from PrepareTextureMailbox . 96 // Callback for mailboxes given to the compositor from PrepareTextureMailbox .
98 void mailboxReleased(const gpu::Mailbox&, const gpu::SyncToken&, 97 void mailboxReleased(const gpu::Mailbox&, const gpu::SyncToken&,
99 bool lostResource); 98 bool lostResource);
100 99
101 // ImageBufferSurface implementation 100 // ImageBufferSurface implementation
102 void finalizeFrame(const FloatRect &dirtyRect); 101 void finalizeFrame(const FloatRect &dirtyRect);
103 void willWritePixels(); 102 void willWritePixels();
104 void willOverwriteAllPixels(); 103 void willOverwriteAllPixels();
105 void willOverwriteCanvas(); 104 void willOverwriteCanvas();
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 // Each element in this vector represents an IOSurface backed texture that 280 // Each element in this vector represents an IOSurface backed texture that
282 // is ready to be reused. 281 // is ready to be reused.
283 // Elements in this vector can safely be purged in low memory conditions. 282 // Elements in this vector can safely be purged in low memory conditions.
284 Vector<ImageInfo> m_imageInfoCache; 283 Vector<ImageInfo> m_imageInfoCache;
285 #endif // USE_IOSURFACE_FOR_2D_CANVAS 284 #endif // USE_IOSURFACE_FOR_2D_CANVAS
286 }; 285 };
287 286
288 } // namespace blink 287 } // namespace blink
289 288
290 #endif 289 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698