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

Side by Side Diff: sky/engine/platform/graphics/Canvas2DLayerBridge.cpp

Issue 762993003: Remove GraphicsLayer family of classes. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "sky/engine/config.h" 26 #include "sky/engine/config.h"
27 27
28 #include "sky/engine/platform/graphics/Canvas2DLayerBridge.h" 28 #include "sky/engine/platform/graphics/Canvas2DLayerBridge.h"
29 29
30 #include "sky/engine/platform/TraceEvent.h" 30 #include "sky/engine/platform/TraceEvent.h"
31 #include "sky/engine/platform/graphics/Canvas2DLayerManager.h" 31 #include "sky/engine/platform/graphics/Canvas2DLayerManager.h"
32 #include "sky/engine/platform/graphics/GraphicsLayer.h" 32 #include "sky/engine/platform/graphics/ImageBuffer.h"
33 #include "sky/engine/public/platform/Platform.h" 33 #include "sky/engine/public/platform/Platform.h"
34 #include "sky/engine/public/platform/WebCompositorSupport.h" 34 #include "sky/engine/public/platform/WebCompositorSupport.h"
35 #include "sky/engine/public/platform/WebGraphicsContext3D.h" 35 #include "sky/engine/public/platform/WebGraphicsContext3D.h"
36 #include "sky/engine/public/platform/WebGraphicsContext3DProvider.h" 36 #include "sky/engine/public/platform/WebGraphicsContext3DProvider.h"
37 #include "sky/engine/wtf/RefCountedLeakCounter.h" 37 #include "sky/engine/wtf/RefCountedLeakCounter.h"
38 #include "third_party/skia/include/core/SkDevice.h" 38 #include "third_party/skia/include/core/SkDevice.h"
39 #include "third_party/skia/include/core/SkSurface.h" 39 #include "third_party/skia/include/core/SkSurface.h"
40 #include "third_party/skia/include/gpu/GrContext.h" 40 #include "third_party/skia/include/gpu/GrContext.h"
41 41
42 namespace { 42 namespace {
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 // This copy constructor should only be used for Vector reallocation 565 // This copy constructor should only be used for Vector reallocation
566 // Assuming 'other' is to be destroyed, we transfer m_image and 566 // Assuming 'other' is to be destroyed, we transfer m_image and
567 // m_parentLayerBridge ownership rather than do a refcount dance. 567 // m_parentLayerBridge ownership rather than do a refcount dance.
568 memcpy(&m_mailbox, &other.m_mailbox, sizeof(m_mailbox)); 568 memcpy(&m_mailbox, &other.m_mailbox, sizeof(m_mailbox));
569 m_image = const_cast<MailboxInfo*>(&other)->m_image.release(); 569 m_image = const_cast<MailboxInfo*>(&other)->m_image.release();
570 m_parentLayerBridge = const_cast<MailboxInfo*>(&other)->m_parentLayerBridge. release(); 570 m_parentLayerBridge = const_cast<MailboxInfo*>(&other)->m_parentLayerBridge. release();
571 m_status = other.m_status; 571 m_status = other.m_status;
572 } 572 }
573 573
574 } // namespace blink 574 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698