OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/shell/renderer/test_runner/TestPlugin.h" | 5 #include "content/shell/renderer/test_runner/TestPlugin.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 bool TestPlugin::acceptsInputEvents() | 314 bool TestPlugin::acceptsInputEvents() |
315 { | 315 { |
316 return true; | 316 return true; |
317 } | 317 } |
318 | 318 |
319 bool TestPlugin::isPlaceholder() | 319 bool TestPlugin::isPlaceholder() |
320 { | 320 { |
321 return false; | 321 return false; |
322 } | 322 } |
323 | 323 |
324 unsigned TestPlugin::PrepareTexture() { | |
325 NOTREACHED(); | |
326 return 0; | |
327 } | |
328 | |
329 static void ignoreReleaseCallback(uint32 sync_point, bool lost) {} | 324 static void ignoreReleaseCallback(uint32 sync_point, bool lost) {} |
330 | 325 |
331 static void releaseSharedMemory(scoped_ptr<base::SharedMemory> bitmap, | 326 static void releaseSharedMemory(scoped_ptr<base::SharedMemory> bitmap, |
332 uint32 sync_point, | 327 uint32 sync_point, |
333 bool lost) {} | 328 bool lost) {} |
334 | 329 |
335 bool TestPlugin::PrepareTextureMailbox( | 330 bool TestPlugin::PrepareTextureMailbox( |
336 cc::TextureMailbox* mailbox, | 331 cc::TextureMailbox* mailbox, |
337 scoped_ptr<cc::SingleReleaseCallback>* releaseCallback, | 332 scoped_ptr<cc::SingleReleaseCallback>* releaseCallback, |
338 bool useSharedMemory) { | 333 bool useSharedMemory) { |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 } | 684 } |
690 | 685 |
691 bool TestPlugin::isSupportedMimeType(const WebString& mimeType) | 686 bool TestPlugin::isSupportedMimeType(const WebString& mimeType) |
692 { | 687 { |
693 return mimeType == TestPlugin::mimeType() | 688 return mimeType == TestPlugin::mimeType() |
694 || mimeType == pluginPersistsMimeType() | 689 || mimeType == pluginPersistsMimeType() |
695 || mimeType == canCreateWithoutRendererMimeType(); | 690 || mimeType == canCreateWithoutRendererMimeType(); |
696 } | 691 } |
697 | 692 |
698 } | 693 } |
OLD | NEW |