| 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 "SampleApp.h" | 8 #include "SampleApp.h" |
| 9 | 9 |
| 10 #include "OverView.h" | 10 #include "OverView.h" |
| (...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1946 default: | 1946 default: |
| 1947 break; | 1947 break; |
| 1948 } | 1948 } |
| 1949 title.prepend("! "); | 1949 title.prepend("! "); |
| 1950 } | 1950 } |
| 1951 | 1951 |
| 1952 #if SK_SUPPORT_GPU | 1952 #if SK_SUPPORT_GPU |
| 1953 if (IsGpuDeviceType(fDeviceType) && | 1953 if (IsGpuDeviceType(fDeviceType) && |
| 1954 fDevManager && | 1954 fDevManager && |
| 1955 fDevManager->getGrRenderTarget() && | 1955 fDevManager->getGrRenderTarget() && |
| 1956 fDevManager->getGrRenderTarget()->numSamples() > 0) { | 1956 fDevManager->getGrRenderTarget()->numColorSamples() > 0) { |
| 1957 title.appendf(" [MSAA: %d]", | 1957 title.appendf(" [MSAA: %d]", |
| 1958 fDevManager->getGrRenderTarget()->numSamples()); | 1958 fDevManager->getGrRenderTarget()->numColorSamples()); |
| 1959 } | 1959 } |
| 1960 #endif | 1960 #endif |
| 1961 | 1961 |
| 1962 this->setTitle(title.c_str()); | 1962 this->setTitle(title.c_str()); |
| 1963 } | 1963 } |
| 1964 | 1964 |
| 1965 void SampleWindow::onSizeChange() { | 1965 void SampleWindow::onSizeChange() { |
| 1966 this->INHERITED::onSizeChange(); | 1966 this->INHERITED::onSizeChange(); |
| 1967 | 1967 |
| 1968 SkView::F2BIter iter(this); | 1968 SkView::F2BIter iter(this); |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2299 setenv("ANDROID_ROOT", "/android/device/data", 0); | 2299 setenv("ANDROID_ROOT", "/android/device/data", 0); |
| 2300 #endif | 2300 #endif |
| 2301 SkGraphics::Init(); | 2301 SkGraphics::Init(); |
| 2302 SkEvent::Init(); | 2302 SkEvent::Init(); |
| 2303 } | 2303 } |
| 2304 | 2304 |
| 2305 void application_term() { | 2305 void application_term() { |
| 2306 SkEvent::Term(); | 2306 SkEvent::Term(); |
| 2307 SkGraphics::Term(); | 2307 SkGraphics::Term(); |
| 2308 } | 2308 } |
| OLD | NEW |