| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 int width, | 189 int width, |
| 190 int height) { | 190 int height) { |
| 191 return RenderDepthStencilSurface::Ref( | 191 return RenderDepthStencilSurface::Ref( |
| 192 new RenderDepthStencilSurfaceStub(service_locator(), width, height)); | 192 new RenderDepthStencilSurfaceStub(service_locator(), width, height)); |
| 193 } | 193 } |
| 194 | 194 |
| 195 StreamBank::Ref RendererStub::CreateStreamBank() { | 195 StreamBank::Ref RendererStub::CreateStreamBank() { |
| 196 return StreamBank::Ref(new StreamBankStub(service_locator())); | 196 return StreamBank::Ref(new StreamBankStub(service_locator())); |
| 197 } | 197 } |
| 198 | 198 |
| 199 bool RendererStub::SaveScreen(const String &) { | 199 Bitmap::Ref RendererStub::TakeScreenshot() { |
| 200 DCHECK(false); | 200 return Bitmap::Ref(); |
| 201 return true; | |
| 202 } | 201 } |
| 203 | 202 |
| 204 ParamCache *RendererStub::CreatePlatformSpecificParamCache(void) { | 203 ParamCache *RendererStub::CreatePlatformSpecificParamCache(void) { |
| 205 return new ParamCacheStub; | 204 return new ParamCacheStub; |
| 206 } | 205 } |
| 207 | 206 |
| 208 void RendererStub::SetViewportInPixels(int, int, int, int, float, float) { | 207 void RendererStub::SetViewportInPixels(int, int, int, int, float, float) { |
| 209 DCHECK(false); | 208 DCHECK(false); |
| 210 } | 209 } |
| 211 | 210 |
| 212 const int* RendererStub::GetRGBAUByteNSwizzleTable() { | 211 const int* RendererStub::GetRGBAUByteNSwizzleTable() { |
| 213 static int swizzle_table[] = { 0, 1, 2, 3, }; | 212 static int swizzle_table[] = { 0, 1, 2, 3, }; |
| 214 return swizzle_table; | 213 return swizzle_table; |
| 215 } | 214 } |
| 216 | 215 |
| 217 // This is a factory function for creating Renderer objects. Since | 216 // This is a factory function for creating Renderer objects. Since |
| 218 // we're implementing a stub renderer, we only ever return a stub renderer. | 217 // we're implementing a stub renderer, we only ever return a stub renderer. |
| 219 Renderer* Renderer::CreateDefaultRenderer(ServiceLocator* service_locator) { | 218 Renderer* Renderer::CreateDefaultRenderer(ServiceLocator* service_locator) { |
| 220 return RendererStub::CreateDefault(service_locator); | 219 return RendererStub::CreateDefault(service_locator); |
| 221 } | 220 } |
| 222 | 221 |
| 223 } // namespace o3d | 222 } // namespace o3d |
| OLD | NEW |