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

Side by Side Diff: content/shell/renderer/test_runner/TestPlugin.cpp

Issue 227413011: Remove old texture path in TextureLayer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/renderer/test_runner/TestPlugin.h ('k') | ui/compositor/layer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/TestPlugin.h ('k') | ui/compositor/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698