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

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

Issue 2455983005: Refactor AcceleratedStaticBitmapImage (Closed)
Patch Set: rebase Created 4 years, 1 month 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) 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 26 matching lines...) Expand all
37 #include "platform/PlatformExport.h" 37 #include "platform/PlatformExport.h"
38 #include "platform/geometry/IntSize.h" 38 #include "platform/geometry/IntSize.h"
39 #include "platform/graphics/GraphicsTypes3D.h" 39 #include "platform/graphics/GraphicsTypes3D.h"
40 #include "platform/graphics/gpu/WebGLImageConversion.h" 40 #include "platform/graphics/gpu/WebGLImageConversion.h"
41 #include "third_party/khronos/GLES2/gl2.h" 41 #include "third_party/khronos/GLES2/gl2.h"
42 #include "third_party/skia/include/core/SkBitmap.h" 42 #include "third_party/skia/include/core/SkBitmap.h"
43 #include "wtf/Deque.h" 43 #include "wtf/Deque.h"
44 #include "wtf/Noncopyable.h" 44 #include "wtf/Noncopyable.h"
45 #include "wtf/RefCounted.h" 45 #include "wtf/RefCounted.h"
46 #include "wtf/Vector.h" 46 #include "wtf/Vector.h"
47 #include "wtf/WeakPtr.h"
47 #include <memory> 48 #include <memory>
48 49
49 namespace cc { 50 namespace cc {
50 class SharedBitmap; 51 class SharedBitmap;
51 } 52 }
52 53
53 namespace gpu { 54 namespace gpu {
54 namespace gles2 { 55 namespace gles2 {
55 class GLES2Interface; 56 class GLES2Interface;
56 } 57 }
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 // used to resize the Canvas. 507 // used to resize the Canvas.
507 SkBitmap m_resizingBitmap; 508 SkBitmap m_resizingBitmap;
508 509
509 // In the case of OffscreenCanvas, we do not want to enable the 510 // In the case of OffscreenCanvas, we do not want to enable the
510 // WebGLImageChromium flag, so we replace all the 511 // WebGLImageChromium flag, so we replace all the
511 // RuntimeEnabledFeatures::webGLImageChromiumEnabled() call with 512 // RuntimeEnabledFeatures::webGLImageChromiumEnabled() call with
512 // shouldUseChromiumImage() calls, and set m_chromiumImageUsage to 513 // shouldUseChromiumImage() calls, and set m_chromiumImageUsage to
513 // DisallowChromiumImage in the case of OffscreenCanvas. 514 // DisallowChromiumImage in the case of OffscreenCanvas.
514 ChromiumImageUsage m_chromiumImageUsage; 515 ChromiumImageUsage m_chromiumImageUsage;
515 bool shouldUseChromiumImage(); 516 bool shouldUseChromiumImage();
517
518 WeakPtrFactory<DrawingBuffer> m_weakPtrFactory;
516 }; 519 };
517 520
518 } // namespace blink 521 } // namespace blink
519 522
520 #endif // DrawingBuffer_h 523 #endif // DrawingBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698