Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove gonk specific configuration lines #311

Merged
merged 1 commit into from Jul 7, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Remove gonk specific configuration lines

  • Loading branch information
lanamorgan committed Jul 7, 2016
commit ad6734448745c94c60b1246e3ce098127f18a169
@@ -22,13 +22,13 @@ use webrender_traits::ImageFormat;
#[cfg(any(target_os = "linux", target_os = "windows", target_os = "macos"))]
const GL_FORMAT_A: gl::GLuint = gl::RED;

#[cfg(any(target_os = "android", target_os = "gonk"))]
#[cfg(target_os = "android")]
const GL_FORMAT_A: gl::GLuint = gl::ALPHA;

#[cfg(any(target_os = "linux", target_os = "windows", target_os = "macos"))]
const GL_FORMAT_BGRA: gl::GLuint = gl::BGRA;

#[cfg(any(target_os = "android", target_os = "gonk"))]
#[cfg(target_os = "android")]
const GL_FORMAT_BGRA: gl::GLuint = gl::BGRA_EXT;

#[cfg(target_os = "linux")]
@@ -40,7 +40,7 @@ const SHADER_VERSION: &'static str = "#version 150\n";
#[cfg(target_os = "windows")]
const SHADER_VERSION: &'static str = "#version 150\n";

#[cfg(any(target_os = "android", target_os = "gonk"))]
#[cfg(target_os = "android")]
const SHADER_VERSION: &'static str = "#version 300 es\n";

static FRAGMENT_SHADER_PREAMBLE: &'static str = "gl3_common.fs.glsl";
@@ -611,7 +611,7 @@ pub struct GpuProfile {
first_frame: bool,
}

#[cfg(any(target_os = "android", target_os = "gonk"))]
#[cfg(target_os = "android")]
pub struct GpuProfile;

impl GpuProfile {
@@ -626,7 +626,7 @@ impl GpuProfile {
}
}

#[cfg(any(target_os = "android", target_os = "gonk"))]
#[cfg(target_os = "android")]
pub fn new() -> GpuProfile {
GpuProfile
}
@@ -637,7 +637,7 @@ impl GpuProfile {
gl::begin_query(gl::TIME_ELAPSED, qid);
}

#[cfg(any(target_os = "android", target_os = "gonk"))]
#[cfg(target_os = "android")]
pub fn begin(&mut self) {}

#[cfg(any(target_os = "linux", target_os = "windows", target_os = "macos"))]
@@ -668,7 +668,7 @@ impl GpuProfile {
}
}

#[cfg(any(target_os = "android", target_os = "gonk"))]
#[cfg(target_os = "android")]
pub fn end(&mut self) -> u64 { 0 }
}

@@ -315,7 +315,7 @@ impl Renderer {
(renderer, sender)
}

#[cfg(any(target_os = "android", target_os = "gonk"))]
#[cfg(target_os = "android")]
fn enable_msaa(&self, _: bool) {
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.