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

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

Issue 1807103002: Move simple methods [A-E] from WebGraphicsContext3D to GLES2Interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@work
Patch Set: bindFoo: ALLthetests Created 4 years, 9 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 27 matching lines...) Expand all
38 #include "wtf/Allocator.h" 38 #include "wtf/Allocator.h"
39 #include "wtf/Deque.h" 39 #include "wtf/Deque.h"
40 #include "wtf/PassOwnPtr.h" 40 #include "wtf/PassOwnPtr.h"
41 #include "wtf/RefCounted.h" 41 #include "wtf/RefCounted.h"
42 #include "wtf/RefPtr.h" 42 #include "wtf/RefPtr.h"
43 #include "wtf/Vector.h" 43 #include "wtf/Vector.h"
44 #include "wtf/WeakPtr.h" 44 #include "wtf/WeakPtr.h"
45 45
46 class SkPictureRecorder; 46 class SkPictureRecorder;
47 47
48 namespace gpu {
49 namespace gles2 {
50 class GLES2Interface;
51 }
52 }
53
48 namespace blink { 54 namespace blink {
49 55
50 class Canvas2DLayerBridgeHistogramLogger; 56 class Canvas2DLayerBridgeHistogramLogger;
51 class Canvas2DLayerBridgeTest; 57 class Canvas2DLayerBridgeTest;
52 class ImageBuffer; 58 class ImageBuffer;
53 class WebGraphicsContext3D; 59 class WebGraphicsContext3D;
54 class WebGraphicsContext3DProvider; 60 class WebGraphicsContext3DProvider;
55 class SharedContextRateLimiter; 61 class SharedContextRateLimiter;
56 62
57 #if OS(MACOSX) 63 #if OS(MACOSX)
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // CHROMIUM image and the texture. 173 // CHROMIUM image and the texture.
168 ImageInfo m_imageInfo; 174 ImageInfo m_imageInfo;
169 #endif // USE_IOSURFACE_FOR_2D_CANVAS 175 #endif // USE_IOSURFACE_FOR_2D_CANVAS
170 176
171 MailboxInfo(const MailboxInfo&); 177 MailboxInfo(const MailboxInfo&);
172 MailboxInfo() {} 178 MailboxInfo() {}
173 }; 179 };
174 180
175 Canvas2DLayerBridge(PassOwnPtr<WebGraphicsContext3DProvider>, const IntSize& , int msaaSampleCount, OpacityMode, AccelerationMode); 181 Canvas2DLayerBridge(PassOwnPtr<WebGraphicsContext3DProvider>, const IntSize& , int msaaSampleCount, OpacityMode, AccelerationMode);
176 WebGraphicsContext3D* context(); 182 WebGraphicsContext3D* context();
183 gpu::gles2::GLES2Interface* contextGL();
177 void startRecording(); 184 void startRecording();
178 void skipQueuedDrawCommands(); 185 void skipQueuedDrawCommands();
179 void flushRecordingOnly(); 186 void flushRecordingOnly();
180 void unregisterTaskObserver(); 187 void unregisterTaskObserver();
181 void reportSurfaceCreationFailure(); 188 void reportSurfaceCreationFailure();
182 189
183 // WebThread::TaskOberver implementation 190 // WebThread::TaskOberver implementation
184 void willProcessTask() override; 191 void willProcessTask() override;
185 void didProcessTask() override; 192 void didProcessTask() override;
186 193
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // Each element in this vector represents an IOSurface backed texture that 271 // Each element in this vector represents an IOSurface backed texture that
265 // is ready to be reused. 272 // is ready to be reused.
266 // Elements in this vector can safely be purged in low memory conditions. 273 // Elements in this vector can safely be purged in low memory conditions.
267 Vector<ImageInfo> m_imageInfoCache; 274 Vector<ImageInfo> m_imageInfoCache;
268 #endif // USE_IOSURFACE_FOR_2D_CANVAS 275 #endif // USE_IOSURFACE_FOR_2D_CANVAS
269 }; 276 };
270 277
271 } // namespace blink 278 } // namespace blink
272 279
273 #endif 280 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698