OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkWindow.h" | 8 #include "SkWindow.h" |
| 9 #include "GrContext.h" |
9 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
10 #include "SkOSMenu.h" | 11 #include "SkOSMenu.h" |
11 #include "SkSurface.h" | 12 #include "SkSurface.h" |
12 #include "SkSystemEventTypes.h" | 13 #include "SkSystemEventTypes.h" |
13 #include "SkTime.h" | 14 #include "SkTime.h" |
14 | 15 |
15 #define SK_EventDelayInval "\xd" "n" "\xa" "l" | 16 #define SK_EventDelayInval "\xd" "n" "\xa" "l" |
16 | 17 |
17 SkWindow::SkWindow() | 18 SkWindow::SkWindow() |
18 : fSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType) | 19 : fSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType) |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 desc.fOrigin = kBottomLeft_GrSurfaceOrigin; | 330 desc.fOrigin = kBottomLeft_GrSurfaceOrigin; |
330 desc.fSampleCnt = attachmentInfo.fSampleCount; | 331 desc.fSampleCnt = attachmentInfo.fSampleCount; |
331 desc.fStencilBits = attachmentInfo.fStencilBits; | 332 desc.fStencilBits = attachmentInfo.fStencilBits; |
332 GrGLint buffer; | 333 GrGLint buffer; |
333 GR_GL_GetIntegerv(interface, GR_GL_FRAMEBUFFER_BINDING, &buffer); | 334 GR_GL_GetIntegerv(interface, GR_GL_FRAMEBUFFER_BINDING, &buffer); |
334 desc.fRenderTargetHandle = buffer; | 335 desc.fRenderTargetHandle = buffer; |
335 return grContext->textureProvider()->wrapBackendRenderTarget(desc); | 336 return grContext->textureProvider()->wrapBackendRenderTarget(desc); |
336 } | 337 } |
337 | 338 |
338 #endif | 339 #endif |
OLD | NEW |